Commit e7e6e30c authored by Sergei Petrunia's avatar Sergei Petrunia

rocksdb_sys_vars should not be run if MyRocks is not compiled.

Copy the detection logic from 'rocksdb' test suite, add a note.
parent 12f7cbc6
package My::Suite::Rocksdb;
#
# Note: ../rocksdb_sys_vars/suite.pm file has a similar
# function. If you modify this file, consider modifying that one, too.
#
@ISA = qw(My::Suite);
use My::Find;
use File::Basename;
......
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 { };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment