]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
kv/MemDB: drop a meaningless assert 10295/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 14 Jul 2016 11:03:26 +0000 (19:03 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 14 Jul 2016 11:34:18 +0000 (19:34 +0800)
The string.clear() is stl method, which shall guarantee
the string will become empty. So this is absolutely
unnecessary.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/kv/MemDB.cc

index 0a67ca2886777583e873a337fa0a71997c6c0500..49205e40a2788ec731ffcc48a9a1aeba52f5f154 100644 (file)
@@ -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();
 }