PS-10243 feature: Add data structures for GTID set operations#77
Merged
percona-ysorokin merged 1 commit intomainfrom Nov 24, 2025
Merged
PS-10243 feature: Add data structures for GTID set operations#77percona-ysorokin merged 1 commit intomainfrom
percona-ysorokin merged 1 commit intomainfrom
Conversation
https://perconadev.atlassian.net/browse/PS-10243 'binsrv::gtids' namespace extended with the following classes / typedefs: * 'tag_storage' - an alias for the 'util::bounded_string_storage<32>', used in GTID_TAGGED_LOG event body * 'gno_t' - an unsigned integer used to represent the 'gno' part of 'GTID'. * 'tag' class, which is used to represent GTID tag, implemented via 'tag_storage' but performs character validation. * 'gtid' class, which is used to represent GTID, incapsulates 'uuid', optional 'tag', and 'gno'. * 'gtid_set' class, which is used to represent a set of GTIDs, can combine elements and other sets, knows how to generate its string representation. Added unit tests based on boost::test framework for the GTID classes: * 'tag_test' * 'gtid_test' * 'gtid_set_test' Main CMakeLists.txt file extended with standard 'BUILD_TESTING' option, imported from 'include(CTest)'. 'BUILD_TESTING' CMake option is now enabled by default in all CMake presets. Temporarily disabled running 'ctest' in GitHub Actions in clang-19 ASan configuration because of the known "-stdlib=libc++ -fsanitize=address" alloc-dealloc-mismatch issue (llvm/llvm-project#59432), which is expected to be fixed in clang-20.
be200c6 to
90a4a16
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://perconadev.atlassian.net/browse/PS-10243
'binsrv::gtids' namespace extended with the following classes / typedefs:
Added unit tests based on boost::test framework for the GTID classes:
Main CMakeLists.txt file extended with standard 'BUILD_TESTING' option, imported from 'include(CTest)'.
'BUILD_TESTING' CMake option is now enabled by default in all CMake presets.