a dead lock while tsdb commit
This commit is contained in:
parent
5f132980e8
commit
9b3844ea91
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue