mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
MariaRocks : Fix looking up sst_dump
This commit is contained in:
parent
980905c884
commit
df92ba3459
1 changed files with 8 additions and 2 deletions
|
@ -1,12 +1,18 @@
|
|||
package My::Suite::Rocksdb;
|
||||
|
||||
@ISA = qw(My::Suite);
|
||||
use My::Find;
|
||||
use File::Basename;
|
||||
use strict;
|
||||
|
||||
sub is_default { not $::opt_embedded_server }
|
||||
|
||||
my ($sst_dump) = grep { -x "$_/sst_dump" } "$::bindir/storage/rocksdb", $::path_client_bindir;
|
||||
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/sst_dump";
|
||||
$ENV{MARIAROCKS_SST_DUMP}="$sst_dump";
|
||||
|
||||
bless { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue