diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-09-06 20:41:28 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2018-09-06 21:06:31 +0200 |
commit | 3a4242fd57b3a2235d2478ed080941b67a82ad1b (patch) | |
tree | ad5a2773c25a736d4efb716f7833a18c1d93abab /storage/tokudb/PerconaFT | |
parent | d527bf5390aa0a7810ebafbe15fd96310062e44e (diff) | |
download | mariadb-git-3a4242fd57b3a2235d2478ed080941b67a82ad1b.tar.gz |
TokuDB: Don't free P_S instrumented mutexes after exit()
don't create static objects that destroy mutexes from destructors,
and don't destroy mutexes from .so destructor (on-unload) function.
if it happens after exit(), P_S will be long gone by that time
this fixes tokudb tests crashing on quantal-amd64
Diffstat (limited to 'storage/tokudb/PerconaFT')
-rw-r--r-- | storage/tokudb/PerconaFT/src/ydb_lib.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/tokudb/PerconaFT/src/ydb_lib.cc b/storage/tokudb/PerconaFT/src/ydb_lib.cc index bf3cde4e927..4775f601d23 100644 --- a/storage/tokudb/PerconaFT/src/ydb_lib.cc +++ b/storage/tokudb/PerconaFT/src/ydb_lib.cc @@ -43,7 +43,7 @@ Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved. #include "ydb.h" #include <toku_assert.h> -#if defined(__GNUC__) +#if 0 && defined(__GNUC__) static void __attribute__((constructor)) libtokuft_init(void) { int r = toku_ydb_init(); |