Skip to content

Merge conflict resolution for MDEV-40365 & co. → 12.3 - #5551

Open
ParadoxV5 wants to merge 45 commits into
bb-12.3-releasefrom
MDEV-40365.12.3
Open

Merge conflict resolution for MDEV-40365 & co. → 12.3#5551
ParadoxV5 wants to merge 45 commits into
bb-12.3-releasefrom
MDEV-40365.12.3

Conversation

@ParadoxV5

Copy link
Copy Markdown
Contributor

sanja-byelkin and others added 30 commits August 3, 2026 13:13
wsrep_provider_plugin_init() marked wsrep_provider_options read only
by mutating the sys_var's flags directly, instead of going through the
sys_var layer. Since MDEV-40341 move_allocated_sysvars_to_root() moves
the value of every read only global string sysvar into the read only
memroot and clears the ALLOCATED flag. wsrep_provider_options_init()
then called my_free() on memroot memory, which aborted on the garbage
allocation header.

Remove the flag mutation instead of working around its effects.
wsrep_provider_options stays a normal read-write variable and is kept
in sync with the provider whenever a plugin sysvar changes.

SET on wsrep_provider_options is still rejected while the
wsrep-provider plugin is loaded, via the existing
wsrep_provider_options_check() function. Its error message now states
the real reason instead of "is a read only variable", which was
misleading: the variable is not statically read only, and
information_schema correctly reports READ_ONLY=NO for it.
s3.clone needs to source create_database.inc so that it can run
in a high-concurrency environment where multiple MTR invocations
are happening at the same time, while only a single S3 bucket (the S3 DB)
is shared among all instances.
@ParadoxV5 ParadoxV5 added MariaDB Corporation Replication Patches involved in replication Rework pull requests that are currently being re-implemented by the MariaDB developers labels Aug 15, 2026
Merge conflict resolution with MDEV-32570, MDEV-34705
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

MariaDB Corporation Replication Patches involved in replication Rework pull requests that are currently being re-implemented by the MariaDB developers

Development

Successfully merging this pull request may close these issues.

4 participants