]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: add formatter for std::optional<>
authorKefu Chai <tchaikov@gmail.com>
Tue, 22 Nov 2022 04:03:15 +0000 (12:03 +0800)
committerKefu Chai <tchaikov@gmail.com>
Tue, 22 Nov 2022 05:54:41 +0000 (13:54 +0800)
commit8c118d630efa2e129cdfd9835c816eb040af3d2d
tree0562d6ffe3db7a6439e1431765f04348b3de77f7
parente6223872c58e492d3570335fd7f05bb52641837c
crimson/osd: add formatter for std::optional<>

in `PG::do_update_log_missing()`, `std::optional<eversion_t>` is printed
using {fmt}, but {fmt} does not support formatting `std::optional<>`. so
we need to swing our own formatter. we can promote this formatter to
a more common place if it is proved to be useful otherwhere in the
source tree.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/crimson/osd/pg.cc