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 <sam.just@inktank.com>
(cherry picked from commit
ce7ffc34408bf32c66dc07e6f42d54b7ec489d41)
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;