]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/scrub: clean-up scrub-store IDs generation 61808/head
authorRonen Friedman <rfriedma@redhat.com>
Tue, 11 Feb 2025 12:52:38 +0000 (06:52 -0600)
committerRonen Friedman <rfriedma@redhat.com>
Sun, 16 Feb 2025 10:54:52 +0000 (04:54 -0600)
commitc7254903768cdb38b5aa450064f71712636e92a0
treed98d92860806c1dc87aeca34d5d2ca91c3e68272
parent0b18c7ce58593ce41703dcd9730f5c934691e58f
osd/scrub: clean-up scrub-store IDs generation

The Scrub Store IDs (used to identify OMAP entries used for storing
object-specific error data) are generated by attaching some prefix to
the text representation of virtual (invented) hobjects.

This commit cleans up the code by moving the name generation
process (creating temporary un-needed objects, then
extracting the to_str() representation of their identity)
into separate functions.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/scrubber/ScrubStore.cc