Commit a5455ab4 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 8d4dedef
......@@ -175,7 +175,6 @@ static TOKUDB_SHARE *get_share(const char *table_name, TABLE_SHARE* table_share)
thr_lock_init(&share->lock);
pthread_mutex_init(&share->mutex, MY_MUTEX_INIT_FAST);
}
pthread_mutex_unlock(&tokudb_mutex);
exit:
if (error) {
......@@ -183,6 +182,7 @@ exit:
my_free((uchar *) share, MYF(0));
share = NULL;
}
pthread_mutex_unlock(&tokudb_mutex);
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