Merge pull request #14726 from taosdata/feature/3.0_mhli

refactor(sync): add vnodeSnapWriterClose IsApply
This commit is contained in:
Li Minghao 2022-07-10 15:12:52 +08:00 committed by GitHub
commit fdda4c9546
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}