From 822e3afecffb6038f37730b4883a462054bbaa80 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Tue, 1 Nov 2016 13:53:20 +0800 Subject: [PATCH] os/bluestore: formatting changes Signed-off-by: xie xingguo --- src/os/bluestore/BlueStore.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 { -- 2.39.5