add self check info
This commit is contained in:
parent
49ba8132c0
commit
061648071e
|
@ -4271,6 +4271,12 @@ int32_t dbChkpGetDelta(SDbChkp* p, int64_t chkpId, SArray* list) {
|
||||||
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) {
|
||||||
|
|
Loading…
Reference in New Issue