From: Sage Weil Date: Fri, 1 Sep 2017 01:09:23 +0000 (-0400) Subject: osd/PrimaryLogPG: start_copy: simplify assert X-Git-Tag: v13.0.1~840^2~31 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=438d0e97c7a23bf56541c47c8d37268bc848eefd;p=ceph.git osd/PrimaryLogPG: start_copy: simplify assert Signed-off-by: Sage Weil --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 99610790ac44..c526d245e95b 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -7809,8 +7809,7 @@ void PrimaryLogPG::start_copy(CopyCallback *cb, ObjectContextRef obc, << (mirror_snapset ? " mirror_snapset" : "") << dendl; - assert(!mirror_snapset || (src.snap == CEPH_NOSNAP || - src.snap == CEPH_SNAPDIR)); + assert(!mirror_snapset || src.snap == CEPH_NOSNAP); // cancel a previous in-progress copy? if (copy_ops.count(dest)) {