Merge pull request #19764 from taosdata/fix/TD-22162

fix(tdb): return success if txn is commited
This commit is contained in:
Xiaoyu Wang 2023-02-03 16:01:26 +08:00 committed by GitHub
commit 9c1b7e8c29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -457,6 +457,11 @@ int tdbPagerAbort(SPager *pPager, TXN *pTxn) {
SPgno journalSize = 0;
int ret;
if (pTxn->jfd == 0) {
// txn is commited
return 0;
}
// sync the journal file
ret = tdbOsFSync(pTxn->jfd);
if (ret < 0) {