Merge pull request #19764 from taosdata/fix/TD-22162
fix(tdb): return success if txn is commited
This commit is contained in:
commit
9c1b7e8c29
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue