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

[t:2342], add back toku_ydb_init and toku_ydb_destroy

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@17677 c7de825b-a66e-492c-adef-691d508d4ae1
parent 8b917ebf
......@@ -120,6 +120,13 @@ extern "C" {
static int tokudb_init_func(void *p) {
TOKUDB_DBUG_ENTER("tokudb_init_func");
int r;
#if defined(_WIN64)
r = toku_ydb_init();
if (r) {
printf("got error %d\n", r);
goto error;
}
#endif
db_env = NULL;
metadata_db = NULL;
......@@ -334,6 +341,9 @@ static int tokudb_done_func(void *p) {
my_hash_free(&tokudb_open_tables);
pthread_mutex_destroy(&tokudb_mutex);
pthread_mutex_destroy(&tokudb_meta_mutex);
#if defined(_WIN64)
toku_ydb_destroy();
#endif
TOKUDB_DBUG_RETURN(0);
}
......
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