]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: PrimaryLogPG: no snapdirs objects during pgls
authorSage Weil <sage@redhat.com>
Thu, 31 Aug 2017 21:21:19 +0000 (17:21 -0400)
committerSage Weil <sage@redhat.com>
Mon, 11 Sep 2017 14:11:29 +0000 (09:11 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PrimaryLogPG.cc

index b91cd4980beeaec8d69a7bc1d381fc112a47c072..40a9843d140578698917f9b9b1a837cdb4975239 100644 (file)
@@ -1238,10 +1238,6 @@ void PrimaryLogPG::do_pg_op(OpRequestRef op)
            break;
          }
 
-         // skip snapdir objects
-         if (candidate.snap == CEPH_SNAPDIR)
-           continue;
-
          if (candidate.snap != CEPH_NOSNAP)
            continue;
 
@@ -1397,10 +1393,6 @@ void PrimaryLogPG::do_pg_op(OpRequestRef op)
            break;
          }
 
-         // skip snapdir objects
-         if (candidate.snap == CEPH_SNAPDIR)
-           continue;
-
          if (candidate.snap != CEPH_NOSNAP)
            continue;