Commit e2ecb687 authored by Zardosht Kasheff's avatar Zardosht Kasheff

added more useful error code for when we run out of locks

git-svn-id: file:///svn/tokudb@2944 c7de825b-a66e-492c-adef-691d508d4ae1
parent 09894eb3
...@@ -1264,7 +1264,7 @@ int toku_lt_acquire_range_read_lock(toku_lock_tree* tree, DB_TXN* txn, ...@@ -1264,7 +1264,7 @@ int toku_lt_acquire_range_read_lock(toku_lock_tree* tree, DB_TXN* txn,
if (r != 0) { goto cleanup; } if (r != 0) { goto cleanup; }
if (!locks_available) { if (!locks_available) {
r = ENOMEM; r = TOKUDB_OUT_OF_LOCKS;
goto cleanup; goto cleanup;
} }
...@@ -1275,7 +1275,7 @@ int toku_lt_acquire_range_read_lock(toku_lock_tree* tree, DB_TXN* txn, ...@@ -1275,7 +1275,7 @@ int toku_lt_acquire_range_read_lock(toku_lock_tree* tree, DB_TXN* txn,
if (r != 0) { goto cleanup; } if (r != 0) { goto cleanup; }
} }
if (out_of_locks) { if (out_of_locks) {
r = ENOMEM; r = TOKUDB_OUT_OF_LOCKS;
goto cleanup; goto cleanup;
} }
...@@ -1380,7 +1380,7 @@ int toku_lt_acquire_write_lock(toku_lock_tree* tree, DB_TXN* txn, ...@@ -1380,7 +1380,7 @@ int toku_lt_acquire_write_lock(toku_lock_tree* tree, DB_TXN* txn,
if (r != 0) { goto cleanup; } if (r != 0) { goto cleanup; }
if (!locks_available) { if (!locks_available) {
r = ENOMEM; r = TOKUDB_OUT_OF_LOCKS;
goto cleanup; goto cleanup;
} }
...@@ -1390,7 +1390,7 @@ int toku_lt_acquire_write_lock(toku_lock_tree* tree, DB_TXN* txn, ...@@ -1390,7 +1390,7 @@ int toku_lt_acquire_write_lock(toku_lock_tree* tree, DB_TXN* txn,
if (r != 0) { goto cleanup; } if (r != 0) { goto cleanup; }
} }
if (out_of_locks) { if (out_of_locks) {
r = ENOMEM; r = TOKUDB_OUT_OF_LOCKS;
goto cleanup; goto cleanup;
} }
...@@ -1446,7 +1446,7 @@ int toku_lt_acquire_range_write_lock(toku_lock_tree* tree, DB_TXN* txn, ...@@ -1446,7 +1446,7 @@ int toku_lt_acquire_range_write_lock(toku_lock_tree* tree, DB_TXN* txn,
if (r != 0) { goto cleanup; } if (r != 0) { goto cleanup; }
if (!locks_available) { if (!locks_available) {
r = ENOMEM; r = TOKUDB_OUT_OF_LOCKS;
goto cleanup; goto cleanup;
} }
...@@ -1457,7 +1457,7 @@ int toku_lt_acquire_range_write_lock(toku_lock_tree* tree, DB_TXN* txn, ...@@ -1457,7 +1457,7 @@ int toku_lt_acquire_range_write_lock(toku_lock_tree* tree, DB_TXN* txn,
if (r != 0) { goto cleanup; } if (r != 0) { goto cleanup; }
} }
if (out_of_locks) { if (out_of_locks) {
r = ENOMEM; r = TOKUDB_OUT_OF_LOCKS;
goto cleanup; goto cleanup;
} }
......
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