]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: remove dead code from inode_t::compare() 2894/head
authorGreg Farnum <gfarnum@redhat.com>
Tue, 11 Nov 2014 00:52:48 +0000 (16:52 -0800)
committerGreg Farnum <gfarnum@redhat.com>
Tue, 11 Nov 2014 00:52:48 +0000 (16:52 -0800)
CID 1251354

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/mds/mdstypes.cc

index f94042bad9627d63c5f1cfff0306b0d3d958bf2e..119c4ec7152d9311573696aaaed465d5041c3f81 100644 (file)
@@ -436,9 +436,6 @@ int inode_t::compare(const inode_t &other, bool *divergent) const
     *divergent = !other.older_is_consistent(*this);
     return -1;
   }
-  assert(0 == "can't have reached this point");
-  *divergent = true;
-  return 0;
 }
 
 bool inode_t::older_is_consistent(const inode_t &other) const