未验证 提交 9c1b7e8c 编写于 作者: X Xiaoyu Wang 提交者: GitHub

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

fix(tdb): return success if txn is commited
...@@ -457,6 +457,11 @@ int tdbPagerAbort(SPager *pPager, TXN *pTxn) { ...@@ -457,6 +457,11 @@ int tdbPagerAbort(SPager *pPager, TXN *pTxn) {
SPgno journalSize = 0; SPgno journalSize = 0;
int ret; int ret;
if (pTxn->jfd == 0) {
// txn is commited
return 0;
}
// sync the journal file // sync the journal file
ret = tdbOsFSync(pTxn->jfd); ret = tdbOsFSync(pTxn->jfd);
if (ret < 0) { if (ret < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册