#11 After a write txn is commited, the caller may access the txn
Closed: Resolved 7 years ago Opened 7 years ago by firstyear.

After a write txn is commited, we have to make the state as now RO. However, the caller, still has a ref to the txn, and may inadventantly call rotxn_close, which would cause txn decrement to be called. This would drop the root transaction to rc 0 and cause a gc. In the end, the tree is now burning to the ground.

During a commit, we should cope the btxn, content to a new txn, and the holder's txn should be invalidated.


@firstyear changed the status to Closed

7 years ago

Login to comment on this ticket.

Metadata