From: Sage Weil Date: Fri, 27 Jan 2017 21:41:08 +0000 (-0500) Subject: os/bluestore: cosmetic cleanup in ExtentMap::update X-Git-Tag: v12.0.1~489^2~16 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f4fc7a3f1998649b17ad60ecb8922712649d7dc5;p=ceph.git os/bluestore: cosmetic cleanup in ExtentMap::update Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 264fb183090ae..a22230cd7206e 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -1768,10 +1768,10 @@ void BlueStore::ExtentMap::update(KeyValueDB::Transaction t, return; } } - // will persist in the onode key, see below + // will persist in the onode key. } else { - struct dirty_shard_t{ + struct dirty_shard_t { uint32_t offset = 0; bufferlist bl; boost::intrusive::list_member_hook<> dirty_list_item; @@ -1785,8 +1785,8 @@ void BlueStore::ExtentMap::update(KeyValueDB::Transaction t, &dirty_shard_t::dirty_list_item> > dirty_shard_list_t; vector encoded_shards; - //allocate slots for all shards in a single call instead of - //doing multiple allocations - one per each dirty shard + // allocate slots for all shards in a single call instead of + // doing multiple allocations - one per each dirty shard encoded_shards.resize(shards.size()); dirty_shard_list_t dirty_shards; @@ -1839,7 +1839,8 @@ void BlueStore::ExtentMap::update(KeyValueDB::Transaction t, p = n; ++pos; } - //schedule DB update for dirty shards + + // schedule DB update for dirty shards auto it = dirty_shards.begin(); string key; while (it != dirty_shards.end()) {