fix a coredump

This commit is contained in:
Hongze Cheng 2021-01-25 18:33:48 +08:00
parent 8f63c7d2f1
commit ad67bdf111
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}