Commit d0527da2 authored by Yoni Fogel's avatar Yoni Fogel

refs #4964 Cleanups during review

git-svn-id: file:///svn/toku/tokudb@45068 c7de825b-a66e-492c-adef-691d508d4ae1
parent 3c9a75b5
...@@ -396,13 +396,11 @@ get_indexer_if_exists( ...@@ -396,13 +396,11 @@ get_indexer_if_exists(
if (!first_indexer) { if (!first_indexer) {
first_indexer = indexer; first_indexer = indexer;
} }
else { else if (first_indexer != indexer) {
if (first_indexer != indexer) {
r = EINVAL; r = EINVAL;
} }
} }
} }
}
if (r == 0) { if (r == 0) {
*indexerp = first_indexer; *indexerp = first_indexer;
} }
...@@ -442,7 +440,6 @@ env_del_multiple( ...@@ -442,7 +440,6 @@ env_del_multiple(
goto cleanup; goto cleanup;
} }
{
uint32_t lock_flags[num_dbs]; uint32_t lock_flags[num_dbs];
uint32_t remaining_flags[num_dbs]; uint32_t remaining_flags[num_dbs];
FT_HANDLE brts[num_dbs]; FT_HANDLE brts[num_dbs];
...@@ -492,7 +489,7 @@ env_del_multiple( ...@@ -492,7 +489,7 @@ env_del_multiple(
else { else {
r = log_del_multiple(txn, src_db, src_key, src_val, num_dbs, brts, del_keys); r = log_del_multiple(txn, src_db, src_key, src_val, num_dbs, brts, del_keys);
} }
if (r == 0) if (r == 0) {
r = do_del_multiple(txn, num_dbs, db_array, del_keys, src_db, src_key); r = do_del_multiple(txn, num_dbs, db_array, del_keys, src_db, src_key);
} }
toku_multi_operation_client_unlock(); toku_multi_operation_client_unlock();
......
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