mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
refs #5010, add assert to toku_txn_manager_pin_live_txn_unlocked verifying that txn being pinned is not read only
git-svn-id: file:///svn/toku/tokudb@45348 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
d39a6033d8
commit
f4026373f0
1 changed files with 1 additions and 0 deletions
|
@ -809,6 +809,7 @@ exit:
|
|||
// a leafentry.
|
||||
void toku_txn_manager_pin_live_txn_unlocked(TXN_MANAGER UU(txn_manager), TOKUTXN txn) {
|
||||
assert(txn->state == TOKUTXN_LIVE || txn->state == TOKUTXN_PREPARING);
|
||||
assert(!toku_txn_is_read_only(txn));
|
||||
txn->num_pin++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue