add self check info

This commit is contained in:
Yihao Deng 2024-06-25 12:35:25 +00:00
parent 49ba8132c0
commit 061648071e
1 changed files with 7 additions and 1 deletions

View File

@ -4270,7 +4270,13 @@ int32_t dbChkpGetDelta(SDbChkp* p, int64_t chkpId, SArray* list) {
taosArrayClearP(p->pDel, taosMemoryFree); taosArrayClearP(p->pDel, taosMemoryFree);
taosHashClear(p->pSstTbl[1 - p->idx]); taosHashClear(p->pSstTbl[1 - p->idx]);
TdDirPtr pDir = taosOpenDir(p->buf); TdDirPtr pDir = taosOpenDir(p->buf);
if (pDir == NULL) {
terrno = errno;
taosThreadRwlockUnlock(&p->rwLock);
return -1;
}
TdDirEntryPtr de = NULL; TdDirEntryPtr de = NULL;
int8_t dummy = 0; int8_t dummy = 0;
while ((de = taosReadDir(pDir)) != NULL) { while ((de = taosReadDir(pDir)) != NULL) {