refactor(sync): add vnodeSnapWriterClose IsApply

This commit is contained in:
Minghao Li 2022-07-10 14:28:46 +08:00
parent 644963b745
commit 0521bd5afe
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ static int32_t vnodeSnapshotStartWrite(struct SSyncFSM *pFsm, void *pParam, void
static int32_t vnodeSnapshotStopWrite(struct SSyncFSM *pFsm, void *pWriter, bool isApply) {
SVnode *pVnode = pFsm->data;
int32_t code = vnodeSnapWriterClose(pWriter, isApply);
int32_t code = vnodeSnapWriterClose(pWriter, !isApply);
return code;
}