From 823551aee76d494fc8b2074827750a42a003afa4 Mon Sep 17 00:00:00 2001 From: Jie Wang Date: Wed, 30 Nov 2016 03:21:01 +0000 Subject: [PATCH] osd/PG: bound the portion of the log we request in PG::RecoveryState::GetLog::GetLog Signed-off-by: Jie Wang --- src/osd/PG.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 6daf383cbc25..bc7bb552ff71 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -7474,7 +7474,8 @@ PG::RecoveryState::GetLog::GetLog(my_context ctx) ++p) { if (*p == pg->pg_whoami) continue; pg_info_t& ri = pg->peer_info[*p]; - if (ri.last_update >= best.log_tail && ri.last_update < request_log_from) + if (ri.last_update < pg->info.log_tail && ri.last_update >= best.log_tail && + ri.last_update < request_log_from) request_log_from = ri.last_update; } -- 2.47.3