Skip to content

Commit bf694f2

Browse files
committed
crimson/osd/pg: add logs for repeating pulls
Signed-off-by: Xuehan Xu <[email protected]>
1 parent 4b9def8 commit bf694f2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/crimson/osd/pg.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,17 @@ class PG : public boost::intrusive_ref_counter<
357357
shard_services.remove_want_pg_temp(orderer, pgid.pgid);
358358
}
359359
void check_recovery_sources(const OSDMapRef& newmap) final {
360+
LOG_PREFIX(PG::check_recovery_sources);
360361
recovery_backend->for_each_recovery_waiter(
361-
[newmap, FNAME](auto &, auto &waiter) {
362+
[newmap, FNAME, this](auto &, auto &waiter) {
362363
if (waiter->is_pulling() &&
363364
newmap->is_down(waiter->pull_info->from.osd)) {
365+
SUBDEBUGDPP(
366+
osd,
367+
" repeating pulling for {}, due to osd {} down",
368+
*this,
369+
waiter->pull_info->soid,
370+
waiter->pull_info->from.osd);
364371
waiter->repeat_pull();
365372
}
366373
});

0 commit comments

Comments
 (0)