]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: migrate from boost::variant to std::variant 62452/head
authorKefu Chai <tchaikov@gmail.com>
Mon, 24 Mar 2025 02:05:25 +0000 (10:05 +0800)
committerKefu Chai <tchaikov@gmail.com>
Tue, 25 Mar 2025 13:04:09 +0000 (21:04 +0800)
commit184443c22fd2fb71bac5fc3d22ce499d99b76157
tree09898a740dfba67ea00e16d99da676573648bc83
parent9ea45138fe80d0a2d6622da08b050b97834594d0
librbd: migrate from boost::variant to std::variant

migrate from boost::variant to std::variant

Complete migration started in commit 017f3339c, replacing boost::variant with
std::variant throughout the librbd codebase. This change is part of our ongoing
effort to reduce third-party dependencies by leveraging C++ standard library
alternatives where possible.

Benefits include:
- Improved code readability and maintainability
- Reduced external dependency surface
- More consistent API usage with other components

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/librbd/Journal.cc
src/librbd/journal/OpenRequest.cc
src/librbd/journal/Replay.cc
src/librbd/journal/Types.cc
src/librbd/journal/Types.h
src/librbd/mirror/DisableRequest.cc
src/test/librbd/journal/test_Entries.cc
src/test/rbd_mirror/image_replayer/journal/test_mock_EventPreprocessor.cc
src/tools/rbd_mirror/image_replayer/Utils.cc
src/tools/rbd_mirror/image_replayer/journal/EventPreprocessor.cc
src/tools/rbd_mirror/image_replayer/journal/PrepareReplayRequest.cc