From 188bc3b722002c8ff845ebd7b5fa79831e5de5c2 Mon Sep 17 00:00:00 2001 From: andrii Date: Fri, 13 Mar 2026 22:34:47 +0100 Subject: [PATCH] Fixed MDEV-38881: no instance handling without -i --- scripts/mysqldumpslow.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mysqldumpslow.sh b/scripts/mysqldumpslow.sh index 582f5c404fbbf..02730c1b3697a 100644 --- a/scripts/mysqldumpslow.sh +++ b/scripts/mysqldumpslow.sh @@ -58,7 +58,7 @@ unless (@ARGV) { my $defaults = `my_print_defaults --mysqld`; my $datadir = ($defaults =~ m/--datadir=(.*)/g)[-1]; - if (!$datadir or $opt{i}) { + if ($opt{i}) { # determine the datadir from the instances section of /etc/my.cnf, if any my $instances = `my_print_defaults instances`; die "Can't determine datadir from 'my_print_defaults instances' output: $defaults"