Commit 93d20fad authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:2797], fix bug on main

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@21933 c7de825b-a66e-492c-adef-691d508d4ae1
parent a6ceacf7
...@@ -175,7 +175,6 @@ static TOKUDB_SHARE *get_share(const char *table_name, TABLE_SHARE* table_share) ...@@ -175,7 +175,6 @@ static TOKUDB_SHARE *get_share(const char *table_name, TABLE_SHARE* table_share)
thr_lock_init(&share->lock); thr_lock_init(&share->lock);
pthread_mutex_init(&share->mutex, MY_MUTEX_INIT_FAST); pthread_mutex_init(&share->mutex, MY_MUTEX_INIT_FAST);
} }
pthread_mutex_unlock(&tokudb_mutex);
exit: exit:
if (error) { if (error) {
...@@ -183,6 +182,7 @@ static TOKUDB_SHARE *get_share(const char *table_name, TABLE_SHARE* table_share) ...@@ -183,6 +182,7 @@ static TOKUDB_SHARE *get_share(const char *table_name, TABLE_SHARE* table_share)
my_free((uchar *) share, MYF(0)); my_free((uchar *) share, MYF(0));
share = NULL; share = NULL;
} }
pthread_mutex_unlock(&tokudb_mutex);
return share; return share;
} }
......
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