From 22322035696595b674d41744f8103f45149df7aa Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Sun, 24 Jan 2021 18:52:08 +0800 Subject: [PATCH] fix sync problem --- src/tsdb/src/tsdbSync.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tsdb/src/tsdbSync.c b/src/tsdb/src/tsdbSync.c index a910f44071..21dc35d201 100644 --- a/src/tsdb/src/tsdbSync.c +++ b/src/tsdb/src/tsdbSync.c @@ -224,6 +224,7 @@ static int32_t tsdbSyncRecvMeta(SSyncH *pSynch) { tsdbInfo("vgId:%d, metafile is received, size:%d", REPO_ID(pRepo), readLen); + mf.info = pSynch->pmf->info; tsdbCloseMFile(&mf); tsdbUpdateMFile(REPO_FS(pRepo), &mf); } else { @@ -233,6 +234,7 @@ static int32_t tsdbSyncRecvMeta(SSyncH *pSynch) { tsdbError("vgId:%d, failed to send decision while recv metafile since %s", REPO_ID(pRepo), tstrerror(terrno)); return -1; } + tsdbUpdateMFile(REPO_FS(pRepo), pLMFile); } return 0;