Skip to content

Fixed ODR violation.#2121

Merged
kamil-holubicki merged 1 commit into
percona:8.0from
kamil-holubicki:ODR-fix
Jun 10, 2025
Merged

Fixed ODR violation.#2121
kamil-holubicki merged 1 commit into
percona:8.0from
kamil-holubicki:ODR-fix

Conversation

@kamil-holubicki

Copy link
Copy Markdown
Contributor

When mysqlbinlog.cc was compiled, WITH_WSREP was undefined. It caused One Definition Rule violation, because handler.h is included indirectly in several compilation units and it contains legacy_db_type that has values conditionally compiled in (WITH_WSREP).

There is no reason why WITH_WSREP should be undefined for mysqlbinlog.cc

When mysqlbinlog.cc was compiled, WITH_WSREP was undefined. It caused
One Definition Rule violation, because handler.h is included indirectly
in several compilation units and it contains legacy_db_type that has
values conditionally compiled in (WITH_WSREP).

There is no reason why WITH_WSREP should be undefined for mysqlbinlog.cc
@kamil-holubicki
kamil-holubicki requested a review from aybek June 9, 2025 16:31

@inikep inikep left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@kamil-holubicki
kamil-holubicki merged commit 5828679 into percona:8.0 Jun 10, 2025
12 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants