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:
Zardosht Kasheff 2013-04-17 00:00:57 -04:00 committed by Yoni Fogel
parent d39a6033d8
commit f4026373f0

View file

@ -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++;
}