diff options
author | Sergei Petrunia <psergey@askmonty.org> | 2017-04-02 23:14:12 +0300 |
---|---|---|
committer | Sergei Petrunia <psergey@askmonty.org> | 2017-04-02 23:14:12 +0300 |
commit | e7e6e30cb7d71572dafa877ae9650ed33110719a (patch) | |
tree | 40008e5a371944ef885c713a1195ecc6656332db /storage/rocksdb/mysql-test/rocksdb_sys_vars | |
parent | 12f7cbc65b3edd9165ae36a08ab62efe3761535c (diff) | |
download | mariadb-git-e7e6e30cb7d71572dafa877ae9650ed33110719a.tar.gz |
rocksdb_sys_vars should not be run if MyRocks is not compiled.
Copy the detection logic from 'rocksdb' test suite, add a note.
Diffstat (limited to 'storage/rocksdb/mysql-test/rocksdb_sys_vars')
-rw-r--r-- | storage/rocksdb/mysql-test/rocksdb_sys_vars/suite.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/storage/rocksdb/mysql-test/rocksdb_sys_vars/suite.pm b/storage/rocksdb/mysql-test/rocksdb_sys_vars/suite.pm index 658a0b3b4d1..c8452b55227 100644 --- a/storage/rocksdb/mysql-test/rocksdb_sys_vars/suite.pm +++ b/storage/rocksdb/mysql-test/rocksdb_sys_vars/suite.pm @@ -1,8 +1,21 @@ package My::Suite::Rocksdb_sys_vars; +# +# Note: The below is copied from ../rocksdb/suite.pm +# @ISA = qw(My::Suite); +use My::Find; +use File::Basename; +use strict; sub is_default { not $::opt_embedded_server } +my $sst_dump= +::mtr_exe_maybe_exists( + "$::bindir/storage/rocksdb$::opt_vs_config/sst_dump", + "$::path_client_bindir/sst_dump"); +return "RocksDB is not compiled, no sst_dump" unless $sst_dump; +$ENV{MARIAROCKS_SST_DUMP}="$sst_dump"; + bless { }; |