}
}
+static void print_chunk_scrub();
void ChunkScrub::chunk_scrub_common()
{
ObjectCursor shard_start;
&shard_start,
&shard_end);
+ const utime_t start = ceph_clock_now();
+ utime_t next_report;
+ if (report_period) {
+ next_report = start;
+ next_report += report_period;
+ }
+
ObjectCursor c(shard_start);
while(c < shard_end)
{
delete formatter;
return;
}
+
+ utime_t now = ceph_clock_now();
+ if (n == 0 && // first thread only
+ next_report != utime_t() && now > next_report) {
+ cerr << (int)(now - start) << "s, interim findings is : "
+ << std::endl;
+ print_chunk_scrub();
+ next_report = now;
+ next_report += report_period;
+ }
+
auto oid = i.oid;
cout << oid << std::endl;
chunk_refs_t refs;