]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: ignore snap link info in scrub if nlinks==0
authorSamuel Just <sam.just@inktank.com>
Mon, 14 Jan 2013 20:52:04 +0000 (12:52 -0800)
committerSage Weil <sage@inktank.com>
Wed, 23 Jan 2013 14:22:07 +0000 (06:22 -0800)
links==0 implies that the replica did not sent snap link information.

Signed-off-by: Samuel Just <sam.just@inktank.com>
(cherry picked from commit 70c3512037596a42ba6eb5eb7f96238843095db9)

src/osd/ReplicatedPG.cc

index 993f5f26f2ab81b2fea1106a512f05f8e3e87042..602c6575ff2a7d18a7e43912489cd39f72eb2f12 100644 (file)
@@ -7232,6 +7232,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<snapid_t> to_check = get_expected_snap_colls(attrs);
   if (to_check != snapcolls) {