From: Jianpeng Ma Date: Tue, 21 Oct 2014 06:30:17 +0000 (+0800) Subject: bufferlist: Don't call rebuild(), c_strt() call it if bufferlist not contiguous. X-Git-Tag: v0.89~24^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c11cf2aebdfd85840a0f7171500bc31e57c5126b;p=ceph.git bufferlist: Don't call rebuild(), c_strt() call it if bufferlist not contiguous. Signed-off-by: Jianpeng Ma --- diff --git a/src/os/LevelDBStore.cc b/src/os/LevelDBStore.cc index 818396a9558c..454fafb620b1 100644 --- a/src/os/LevelDBStore.cc +++ b/src/os/LevelDBStore.cc @@ -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); diff --git a/src/os/RocksDBStore.cc b/src/os/RocksDBStore.cc index 8b1b6dbceeb3..51988b784fdd 100644 --- a/src/os/RocksDBStore.cc +++ b/src/os/RocksDBStore.cc @@ -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);