diff options
Diffstat (limited to 'storage/tokudb/PerconaFT/src/ydb.cc')
-rw-r--r-- | storage/tokudb/PerconaFT/src/ydb.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/storage/tokudb/PerconaFT/src/ydb.cc b/storage/tokudb/PerconaFT/src/ydb.cc index 9875e9227d4..58d39c50c23 100644 --- a/storage/tokudb/PerconaFT/src/ydb.cc +++ b/storage/tokudb/PerconaFT/src/ydb.cc @@ -186,9 +186,12 @@ toku_ydb_init(void) { // Do not clean up resources if env is panicked, just exit ugly void toku_ydb_destroy(void) { + if (!ydb_layer_status.initialized) + return; if (env_is_panicked == 0) { toku_ft_layer_destroy(); } + ydb_layer_status.initialized = false; } static int |