Merge pull request #14646 from taosdata/fix/fdel
fix: another delete file commit bug
This commit is contained in:
commit
d2a1d50f5d
|
@ -168,8 +168,6 @@ static int32_t tsdbCommitTableDel(SCommitter *pCommitter, STbData *pTbData, SDel
|
|||
tb_uid_t suid;
|
||||
tb_uid_t uid;
|
||||
|
||||
taosArrayClear(pCommitter->aDelData);
|
||||
|
||||
if (pTbData) {
|
||||
suid = pTbData->suid;
|
||||
uid = pTbData->uid;
|
||||
|
@ -185,6 +183,8 @@ static int32_t tsdbCommitTableDel(SCommitter *pCommitter, STbData *pTbData, SDel
|
|||
|
||||
code = tsdbReadDelData(pCommitter->pDelFReader, pDelIdx, pCommitter->aDelData, NULL);
|
||||
if (code) goto _err;
|
||||
} else {
|
||||
taosArrayClear(pCommitter->aDelData);
|
||||
}
|
||||
|
||||
if (pTbData == NULL && pDelIdx == NULL) goto _exit;
|
||||
|
@ -205,7 +205,7 @@ static int32_t tsdbCommitTableDel(SCommitter *pCommitter, STbData *pTbData, SDel
|
|||
if (code) goto _err;
|
||||
|
||||
// put delIdx
|
||||
if (taosArrayPush(pCommitter->aDelIdx, &delIdx) == NULL) {
|
||||
if (taosArrayPush(pCommitter->aDelIdxN, &delIdx) == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
goto _err;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue