From: Sage Weil Date: Thu, 22 Sep 2016 19:52:19 +0000 (-0400) Subject: os/bluestore: do deep encode of onode X-Git-Tag: v11.1.0~617^2~4 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=269a5bba1c3187a6895eb8ce779f52072a3a9ae1;p=ceph-ci.git os/bluestore: do deep encode of onode Avoid an inevitable rebuild() since we have to pass this to rocksdb as a single memory buffer anyway. Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index ccad872ba9f..361070a8b2c 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -6307,7 +6307,7 @@ void BlueStore::_txc_write_nodes(TransContext *txc, KeyValueDB::Transaction t) bufferlist bl; unsigned onode_part, blob_part, extent_part; { - auto p = bl.get_contiguous_appender(bound); + auto p = bl.get_contiguous_appender(bound, true); denc(o->onode, p); onode_part = p.get_logical_offset(); o->extent_map.encode_spanning_blobs(p);