Skip to content
/ server Public

MDEV-38881: fix for 11.8#4802

Open
ge65tup wants to merge 1 commit intoMariaDB:11.8from
ge65tup:fix-dumpslow
Open

MDEV-38881: fix for 11.8#4802
ge65tup wants to merge 1 commit intoMariaDB:11.8from
ge65tup:fix-dumpslow

Conversation

@ge65tup
Copy link

@ge65tup ge65tup commented Mar 13, 2026

This PR refers to the version 11.8 and fixes MDEV-38881. The related script mysqldumpslow.sh was modified to avoid handling instances for mariadb-dumpslow without -i option. The previous condition if (!$datadir or $opt(i)) was rewritten into if ($opt(i)), while the body of if-statement remained unaffected by its logic. It means calling mariadb-dumpslow would lead to the next branch which requires $slowlog. While instances are not much supported by MariaDB now, this is the smallest conservative fix to keep the original feature.

@CLAassistant
Copy link

CLAassistant commented Mar 13, 2026

CLA assistant check
All committers have signed the CLA.

@gkodinov gkodinov added the External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements. label Mar 16, 2026
my $defaults = `my_print_defaults --mysqld`;

my $datadir = ($defaults =~ m/--datadir=(.*)/g)[-1];
if (!$datadir or $opt{i}) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix is incorrect. When instance option is specified, It will go read the instances and try to determine data dir even if datadir is specified.

I would support Serg's request: retarget this against main and remove the whole instance thing. The simpler, the better. I doubt anybody is using that.

Failing that please only go to read the instances only if there's an instance option and datadir is not specified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements.

Development

Successfully merging this pull request may close these issues.

3 participants