[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
This commit is contained in:
Zardosht Kasheff 2010-02-11 19:22:00 +00:00 committed by Yoni Fogel
parent 8b917ebf1c
commit fa8ec1fd78

View file

@ -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);
}