Commit fb5fe09f authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:4717], fix problem

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@41769 c7de825b-a66e-492c-adef-691d508d4ae1
parent 815c2676
...@@ -7611,10 +7611,11 @@ int ha_tokudb::tokudb_add_index( ...@@ -7611,10 +7611,11 @@ int ha_tokudb::tokudb_add_index(
// //
// We have an accurate row count, might as well update share->rows // We have an accurate row count, might as well update share->rows
// //
pthread_mutex_lock(&share->mutex); if(!creating_hot_index) {
share->rows = num_processed; pthread_mutex_lock(&share->mutex);
pthread_mutex_unlock(&share->mutex); share->rows = num_processed;
pthread_mutex_unlock(&share->mutex);
}
// //
// now write stuff to status.tokudb // now write stuff to status.tokudb
// //
......
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