]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kv: fill 'm_key_value' after 'seek_to_first' or 'seek_to_last'
authorhaodong <haodong.tang@intel.com>
Wed, 17 Aug 2016 15:19:37 +0000 (23:19 +0800)
committerhaodong <haodong.tang@intel.com>
Thu, 18 Aug 2016 07:17:41 +0000 (15:17 +0800)
Signed-off-by: Haodong Tang <haodong.tang@intel.com>
src/kv/MemDB.cc

index 09830ce5c82c4a82ac4063e5c805c632162e875e..b0563882c83f5643d8b639f8e3a06e188391d68d 100644 (file)
@@ -503,6 +503,7 @@ int MemDB::MDBWholeSpaceIteratorImpl::seek_to_first(const std::string &k)
   if (m_iter == m_btree_p->end()) {
     return -1;
   }
+  fill_current();
   return 0;
 }
 
@@ -520,6 +521,7 @@ int MemDB::MDBWholeSpaceIteratorImpl::seek_to_last(const std::string &k)
   if (m_iter == m_btree_p->end()) {
     return -1;
   }
+  fill_current();
   return 0;
 }