summaryrefslogtreecommitdiffstats
path: root/src/osd/scrubber/PrimaryLogScrub.cc
diff options
context:
space:
mode:
authorRonen Friedman <rfriedma@redhat.com>2022-01-13 10:22:11 +0100
committerRonen Friedman <rfriedma@redhat.com>2022-01-22 11:37:06 +0100
commita007b29859ed947c11facc54c24b89a41c3008e2 (patch)
tree02bfd381048a79c3e18ebc95758b31c44e04fce1 /src/osd/scrubber/PrimaryLogScrub.cc
parentosd/scrub: scrub components embedded documentation (diff)
downloadceph-a007b29859ed947c11facc54c24b89a41c3008e2.tar.xz
ceph-a007b29859ed947c11facc54c24b89a41c3008e2.zip
osd/scrub: change missing_digest fix-list type
...allowing for efficient creation and, more important, direct consumption by the function performing the actual I/O. Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
Diffstat (limited to 'src/osd/scrubber/PrimaryLogScrub.cc')
-rw-r--r--src/osd/scrubber/PrimaryLogScrub.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/osd/scrubber/PrimaryLogScrub.cc b/src/osd/scrubber/PrimaryLogScrub.cc
index 53247cae4c5..127f9fab56b 100644
--- a/src/osd/scrubber/PrimaryLogScrub.cc
+++ b/src/osd/scrubber/PrimaryLogScrub.cc
@@ -42,12 +42,12 @@ bool PrimaryLogScrub::get_store_errors(const scrub_ls_arg_t& arg,
return true;
}
-// forwarders used by the scrubber backend
-
/// \todo combine the multiple transactions into a single one
void PrimaryLogScrub::submit_digest_fixes(const digests_fixes_t& fixes)
{
- num_digest_updates_pending += fixes.size();
+ // note: the following line was modified from '+=' to '=', as we should not
+ // encounter previous-chunk digest updates after starting a new chunk
+ num_digest_updates_pending = fixes.size();
dout(10) << __func__
<< ": num_digest_updates_pending: " << num_digest_updates_pending
<< dendl;
@@ -99,6 +99,7 @@ void PrimaryLogScrub::submit_digest_fixes(const digests_fixes_t& fixes)
}
}
+// a forwarder used by the scrubber backend
void PrimaryLogScrub::add_to_stats(const object_stat_sum_t& stat)
{