]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd/scrub: clear m_ec_digest_map between objects wip-rf-ec72898
authorRonen Friedman <rfriedma@redhat.com>
Sun, 7 Sep 2025 07:19:52 +0000 (02:19 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Sun, 7 Sep 2025 07:19:52 +0000 (02:19 -0500)
Fixing a bug introduced by commit 4c61079e931
("caluculate EC digest map size only once").

Fixes: https://tracker.ceph.com/issues/72897
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/scrubber/scrub_backend.cc

index 6eee0c4cf923e2789b84472fda40245dc06ad8eb..4efd8986c08dc9f9df86b13f793e952a25523bfd 100644 (file)
@@ -881,6 +881,7 @@ std::optional<std::string> ScrubBackend::compare_obj_in_maps(
 {
   // clear per-object data:
   m_current_obj = object_scrub_data_t{};
+  this_chunk->m_ec_digest_map.clear();
 
   stringstream candidates_errors;
   auto auth_res = select_auth_object(ho, candidates_errors);