]> 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)
committerSamuel Just <sam.just@inktank.com>
Wed, 16 Jan 2013 22:42:47 +0000 (14:42 -0800)
links==0 implies that the replica did not sent snap link information.

Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc

index 92ec3b7a17f64894ff92d8efc139075d8f366340..2e15e945b10b5f1c9adcb12678ef8a546f5244d7 100644 (file)
@@ -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<snapid_t> to_check = get_expected_snap_colls(attrs);
   if (to_check != snapcolls) {