From ac914834ba4fb0e4770f63c60713be7a48aa3fa1 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Thu, 21 Feb 2013 15:31:36 -0800 Subject: [PATCH] PG::proc_replica_log: adjust oinfo.last_complete based on omissing Otherwise, search_for_missing may neglect to check the missing set for some objects assuming that if the need version is prior to last_complete, the replica must have it. Fixes: #4994 Signed-off-by: Samuel Just (cherry picked from commit ce7ffc34408bf32c66dc07e6f42d54b7ec489d41) --- src/osd/PG.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 2f1d77cb60210..27080b5ac69e9 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -270,6 +270,8 @@ void PG::proc_replica_log(ObjectStore::Transaction& t, oinfo.last_update = lu; if (lu < oinfo.last_complete) oinfo.last_complete = lu; + if (omissing.have_missing()) + oinfo.last_complete = missing.missing[missing.rmissing.begin()->second].need; } peer_info[from] = oinfo; -- 2.39.5