From: xie xingguo Date: Tue, 1 Nov 2016 05:53:20 +0000 (+0800) Subject: os/bluestore: formatting changes X-Git-Tag: v11.1.0~459^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=822e3afecffb6038f37730b4883a462054bbaa80;p=ceph.git os/bluestore: formatting changes Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 019c712f77a07..23b13bda06c0b 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -1504,7 +1504,8 @@ bool BlueStore::ExtentMap::update(Onode *o, KeyValueDB::Transaction t, if (o->onode.extent_map_shards.empty()) { if (inline_bl.length() == 0) { unsigned n; - bool never_happen = encode_some(0, OBJECT_MAX_SIZE, inline_bl, &n); //we need to encode inline_bl to measure encoded length + // we need to encode inline_bl to measure encoded length + bool never_happen = encode_some(0, OBJECT_MAX_SIZE, inline_bl, &n); assert(!never_happen); size_t len = inline_bl.length(); dout(20) << __func__ << " inline shard " @@ -1630,8 +1631,8 @@ void BlueStore::ExtentMap::reshard(Onode *o, uint64_t min_alloc_size) auto sp = o->onode.extent_map_shards.begin(); auto esp = o->onode.extent_map_shards.end(); unsigned shard_start = 0; - ++sp; unsigned shard_end; + ++sp; if (sp == esp) { shard_end = OBJECT_MAX_SIZE; } else {