]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
bufferlist: Don't call rebuild(), c_strt() call it if bufferlist not contiguous. 2739/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Tue, 21 Oct 2014 06:30:17 +0000 (14:30 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Tue, 11 Nov 2014 05:37:26 +0000 (13:37 +0800)
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/os/LevelDBStore.cc
src/os/RocksDBStore.cc

index 818396a9558ca77efdcc937b336f4a43debd9215..454fafb620b17cfb6df076e0c779ad29cae0cdaf 100644 (file)
@@ -154,7 +154,6 @@ void LevelDBStore::LevelDBTransactionImpl::set(
   const bufferlist &to_set_bl)
 {
   buffers.push_back(to_set_bl);
-  buffers.rbegin()->rebuild();
   bufferlist &bl = *(buffers.rbegin());
   string key = combine_strings(prefix, k);
   keys.push_back(key);
index 8b1b6dbceeb338766f2e9962e1af47067da47241..51988b784fdd4b8277672e552b736712f8828120 100644 (file)
@@ -226,7 +226,6 @@ void RocksDBStore::RocksDBTransactionImpl::set(
   const bufferlist &to_set_bl)
 {
   buffers.push_back(to_set_bl);
-  buffers.rbegin()->rebuild();
   bufferlist &bl = *(buffers.rbegin());
   string key = combine_strings(prefix, k);
   keys.push_back(key);