Commit d2decf3f authored by Barry Perlman's avatar Barry Perlman Committed by Yoni Fogel

[t:2504] Bug fix, do not attempt to update accountability counters when...

[t:2504] Bug fix, do not attempt to update accountability counters when toku_lt_acquire_range_read_lock() or toku_lt_acquire_range_write_lock() is called with NULL tree.

git-svn-id: file:///svn/toku/tokudb@20142 c7de825b-a66e-492c-adef-691d508d4ae1
parent 9ffaaf45
......@@ -1789,7 +1789,7 @@ int toku_lt_acquire_range_read_lock(toku_lock_tree* tree, DB* db, TXNID txn,
r = 0;
cleanup:
{
if (tree) {
LTM_STATUS s = &(tree->mgr->status);
if (r == 0) {
s->read_lock++;
......@@ -2015,7 +2015,7 @@ int toku_lt_acquire_range_write_lock(toku_lock_tree* tree, DB* db, TXNID txn,
r = 0;
cleanup:
{
if (tree) {
LTM_STATUS s = &(tree->mgr->status);
if (r == 0) {
s->write_lock++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment