Commit a8c9af27 authored by Zardosht Kasheff's avatar Zardosht Kasheff

closes #66, have may_table_be_empty call use the same transaction that opens...

closes #66, have may_table_be_empty call use the same transaction that opens and possibly creates the table, otherwise it may block behind that transaction's lock tree locks
parent 8fe18b94
...@@ -1830,7 +1830,7 @@ int ha_tokudb::initialize_share( ...@@ -1830,7 +1830,7 @@ int ha_tokudb::initialize_share(
init_auto_increment(); init_auto_increment();
} }
if (may_table_be_empty(NULL)) { if (may_table_be_empty(txn)) {
share->try_table_lock = true; share->try_table_lock = true;
} }
else { else {
......
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