From 70c3512037596a42ba6eb5eb7f96238843095db9 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Mon, 14 Jan 2013 12:52:04 -0800 Subject: [PATCH] ReplicatedPG: ignore snap link info in scrub if nlinks==0 links==0 implies that the replica did not sent snap link information. Signed-off-by: Samuel Just --- src/osd/ReplicatedPG.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 92ec3b7a17f64..2e15e945b10b5 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -7239,6 +7239,8 @@ bool ReplicatedPG::_report_snap_collection_errors( uint32_t nlinks, ostream &out) { + if (nlinks == 0) + return false; // replica didn't encode snap_collection information bool errors = false; set to_check = get_expected_snap_colls(attrs); if (to_check != snapcolls) { -- 2.39.5