]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: formatting nits
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 15 Nov 2016 00:32:25 +0000 (08:32 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 15 Nov 2016 00:32:25 +0000 (08:32 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc

index 2d065e0334b8d95c815cd647ac95de389b620b38..4cfe67ba03aa8c9b390554594db526dbf7641331 100644 (file)
@@ -4376,7 +4376,6 @@ int BlueStore::fsck(bool deep)
     list<string> expecting_shards;
     for (it->lower_bound(string()); it->valid(); it->next()) {
       dout(30) << " key " << pretty_binary_string(it->key()) << dendl;
-      ghobject_t oid;
       if (is_extent_shard_key(it->key())) {
        while (!expecting_shards.empty() &&
               expecting_shards.front() < it->key()) {
@@ -4397,7 +4396,7 @@ int BlueStore::fsck(bool deep)
         string okey;
         get_key_extent_shard(it->key(), &okey, &offset);
         derr << __func__ << " stray shard 0x" << std::hex << offset << std::dec
-                         << dendl;
+             << dendl;
         if (expecting_shards.empty()) {
           derr << __func__ << pretty_binary_string(it->key())
                << " is unexpected" << dendl;
@@ -4417,6 +4416,8 @@ int BlueStore::fsck(bool deep)
        }
        continue;
       }
+
+      ghobject_t oid;
       int r = get_key_object(it->key(), &oid);
       if (r < 0) {
         derr << __func__ << "  bad object key "