Skip to content

Commit 3599b49

Browse files
committed
MariaRocks : Fix looking up sst_dump
1 parent 440addf commit 3599b49

File tree

1 file changed

+8
-2
lines changed
  • storage/rocksdb/mysql-test/rocksdb

1 file changed

+8
-2
lines changed
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
package My::Suite::Rocksdb;
22

33
@ISA = qw(My::Suite);
4+
use My::Find;
5+
use File::Basename;
6+
use strict;
47

58
sub is_default { not $::opt_embedded_server }
69

7-
my ($sst_dump) = grep { -x "$_/sst_dump" } "$::bindir/storage/rocksdb", $::path_client_bindir;
10+
my $sst_dump=
11+
::mtr_exe_maybe_exists(
12+
"$::bindir/storage/rocksdb$::opt_vs_config/sst_dump",
13+
"$::path_client_bindir/sst_dump");
814
return "RocksDB is not compiled, no sst_dump" unless $sst_dump;
9-
$ENV{MARIAROCKS_SST_DUMP}="$sst_dump/sst_dump";
15+
$ENV{MARIAROCKS_SST_DUMP}="$sst_dump";
1016

1117
bless { };
1218

0 commit comments

Comments
 (0)