]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedBackend: prepare_pull: simplify assert
authorSage Weil <sage@redhat.com>
Thu, 31 Aug 2017 21:38:11 +0000 (17:38 -0400)
committerSage Weil <sage@redhat.com>
Mon, 11 Sep 2017 14:11:30 +0000 (09:11 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/ReplicatedBackend.cc

index f9b181f1f2901b7b90a5390dff146b5b81d67f14..61ab72f9bebb9323fb8a37b3abc6443f2784a0a3 100644 (file)
@@ -1410,10 +1410,7 @@ void ReplicatedBackend::prepare_pull(
   ObcLockManager lock_manager;
 
   if (soid.is_snap()) {
-    assert(!get_parent()->get_local_missing().is_missing(
-            soid.get_head()) ||
-          !get_parent()->get_local_missing().is_missing(
-            soid.get_snapdir()));
+    assert(!get_parent()->get_local_missing().is_missing(soid.get_head()));
     assert(headctx);
     // check snapset
     SnapSetContext *ssc = headctx->ssc;