fix invalid cmp

This commit is contained in:
yihaoDeng 2023-08-22 09:10:48 +08:00
parent 55f1d464ab
commit 2268114c4a
1 changed files with 4 additions and 4 deletions

View File

@ -916,10 +916,10 @@ int32_t streamBackendDoCheckpoint(void* arg, uint64_t checkpointId) {
qError("stream backend:%p failed to flush db at:%s", pHandle, pChkpIdDir); qError("stream backend:%p failed to flush db at:%s", pHandle, pChkpIdDir);
} }
// release all ref to cfWrapper; // release all ref to cfWrapper;
// for (int i = 0; i < taosArrayGetSize(refs); i++) { for (int i = 0; i < taosArrayGetSize(refs); i++) {
// int64_t id = *(int64_t*)taosArrayGet(refs, i); int64_t id = *(int64_t*)taosArrayGet(refs, i);
// taosReleaseRef(streamBackendCfWrapperId, id); taosReleaseRef(streamBackendCfWrapperId, id);
// } }
if (code == 0) { if (code == 0) {
taosWLockLatch(&pMeta->chkpDirLock); taosWLockLatch(&pMeta->chkpDirLock);
taosArrayPush(pMeta->chkpSaved, &checkpointId); taosArrayPush(pMeta->chkpSaved, &checkpointId);