提交 7902b7aa 编写于 作者: M Minglei Jin

fix/tdb: remove UAF preped

上级 e090cd9d
......@@ -89,7 +89,6 @@ struct STxn {
void *xArg;
tdb_fd_t jfd;
hashset_t jPageSet;
int preped;
};
// error code
......
......@@ -297,7 +297,7 @@ int tdbPagerBegin(SPager *pPager, TXN *pTxn) {
}
pTxn->jPageSet = hashset_create();
ASSERT(pPager->pActiveTxn->preped == 1);
pPager->pActiveTxn = pTxn;
// TODO: write the size of the file
/*
......@@ -433,7 +433,6 @@ int tdbPagerPrepareAsyncCommit(SPager *pPager, TXN *pTxn) {
tdbPCacheRelease(pPager->pCache, pPage, pTxn);
}
pTxn->preped = 1;
/*
tdbTrace("reset dirty tree: %p", &pPager->rbt);
tRBTreeCreate(&pPager->rbt, pageCmpFn);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册