a dead lock while tsdb commit

This commit is contained in:
slguan 2020-05-07 14:29:06 +08:00
parent 5f132980e8
commit 9b3844ea91
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ void tsdbFitRetention(STsdbRepo *pRepo) {
int mfid =
tsdbGetKeyFileId(taosGetTimestamp(pRepo->config.precision), pRepo->config.daysPerFile, pRepo->config.precision);
while (pGroup[0].fileId < mfid) {
while (pFileH->numOfFGroups > 0 && pGroup[0].fileId < mfid) {
tsdbRemoveFileGroup(pFileH, pGroup[0].fileId);
}
}