]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
KeyValueStore.cc: silence gcc -Wunused-variable
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 4 Jun 2014 22:13:57 +0000 (00:13 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 4 Jun 2014 22:13:57 +0000 (00:13 +0200)
Don't assign return value of i.get_length() to a variable until
they are really used. Added comment on what is the intention of
the variables.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/os/KeyValueStore.cc

index 3aa2d6780ce19014e5314e470eacf00d9e24eb85..97ad36169635457774b5a215efd6065dd85f5f30 100644 (file)
@@ -1451,8 +1451,8 @@ unsigned KeyValueStore::_do_transaction(Transaction& transaction,
         // TODO: can kvstore make use of the hint?
         coll_t cid(i.get_cid());
         ghobject_t oid = i.get_oid();
-        uint64_t expected_object_size = i.get_length();
-        uint64_t expected_write_size = i.get_length();
+        i.get_length(); // uint64_t expected_object_size
+        i.get_length(); // uint64_t expected_write_size
       }
       break;