From ad67bdf111624b0f76adcac3181fef0a4521003d Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Mon, 25 Jan 2021 18:33:48 +0800 Subject: [PATCH] fix a coredump --- src/tsdb/src/tsdbSync.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tsdb/src/tsdbSync.c b/src/tsdb/src/tsdbSync.c index ae620d4cfd..a16b97ce28 100644 --- a/src/tsdb/src/tsdbSync.c +++ b/src/tsdb/src/tsdbSync.c @@ -365,7 +365,8 @@ static int32_t tsdbSyncSendDFileSetArray(SSyncH *pSynch) { do { pSet = tsdbFSIterNext(&fsiter); if (tsdbSyncSendDFileSet(pSynch, pSet) < 0) { - tsdbError("vgId:%d, failed to send fileset:%d since %s", REPO_ID(pRepo), pSet->fid, tstrerror(terrno)); + tsdbError("vgId:%d, failed to send fileset:%d since %s", REPO_ID(pRepo), pSet ? pSet->fid : -1, + tstrerror(terrno)); return -1; }