mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
[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:
parent
8b917ebf1c
commit
fa8ec1fd78
1 changed files with 10 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue