Merge pull request #27577 from taosdata/fix/TD-31798-3.0

fix(query)[TD-31798]: Cleanup temporary object on array append failure
This commit is contained in:
Pan Wei 2024-08-31 18:35:54 +08:00 committed by GitHub
commit c5cf448730
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -1020,7 +1020,10 @@ int32_t tsdbFSCreateRefSnapshotWithoutLock(STFileSystem *fs, TFileSetArray **fse
if (code) break;
code = TARRAY2_APPEND(fsetArr[0], fset1);
if (code) break;
if (code) {
tsdbTFileSetClear(&fset1);
break;
}
}
if (code) {
@ -1219,4 +1222,4 @@ int32_t tsdbFinishTaskOnFileSet(STsdb *tsdb, int32_t fid) {
}
return 0;
}
}