From: xie xingguo Date: Thu, 14 Jul 2016 11:03:26 +0000 (+0800) Subject: kv/MemDB: drop a meaningless assert X-Git-Tag: ses5-milestone5~361^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F10295%2Fhead;p=ceph.git kv/MemDB: drop a meaningless assert The string.clear() is stl method, which shall guarantee the string will become empty. So this is absolutely unnecessary. Signed-off-by: xie xingguo --- diff --git a/src/kv/MemDB.cc b/src/kv/MemDB.cc index 0a67ca288677..49205e40a278 100644 --- a/src/kv/MemDB.cc +++ b/src/kv/MemDB.cc @@ -400,7 +400,6 @@ void MemDB::MDBWholeSpaceIteratorImpl::free_last() { m_key_value.first.clear(); - assert(m_key_value.first.empty()); m_key_value.second.clear(); }