Commit 5d0aca82 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 93a1bf56
......@@ -1264,7 +1264,7 @@ int toku_lt_acquire_range_read_lock(toku_lock_tree* tree, DB_TXN* txn,
if (r != 0) { goto cleanup; }
if (!locks_available) {
r = ENOMEM;
r = TOKUDB_OUT_OF_LOCKS;
goto cleanup;
}
......@@ -1275,7 +1275,7 @@ int toku_lt_acquire_range_read_lock(toku_lock_tree* tree, DB_TXN* txn,
if (r != 0) { goto cleanup; }
}
if (out_of_locks) {
r = ENOMEM;
r = TOKUDB_OUT_OF_LOCKS;
goto cleanup;
}
......@@ -1380,7 +1380,7 @@ int toku_lt_acquire_write_lock(toku_lock_tree* tree, DB_TXN* txn,
if (r != 0) { goto cleanup; }
if (!locks_available) {
r = ENOMEM;
r = TOKUDB_OUT_OF_LOCKS;
goto cleanup;
}
......@@ -1390,7 +1390,7 @@ int toku_lt_acquire_write_lock(toku_lock_tree* tree, DB_TXN* txn,
if (r != 0) { goto cleanup; }
}
if (out_of_locks) {
r = ENOMEM;
r = TOKUDB_OUT_OF_LOCKS;
goto cleanup;
}
......@@ -1446,7 +1446,7 @@ int toku_lt_acquire_range_write_lock(toku_lock_tree* tree, DB_TXN* txn,
if (r != 0) { goto cleanup; }
if (!locks_available) {
r = ENOMEM;
r = TOKUDB_OUT_OF_LOCKS;
goto cleanup;
}
......@@ -1457,7 +1457,7 @@ int toku_lt_acquire_range_write_lock(toku_lock_tree* tree, DB_TXN* txn,
if (r != 0) { goto cleanup; }
}
if (out_of_locks) {
r = ENOMEM;
r = TOKUDB_OUT_OF_LOCKS;
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