From: Sage Weil Date: Wed, 4 Jun 2014 22:06:59 +0000 (-0700) Subject: Revert "Remove unused variables in KeyValueStore.cc" X-Git-Tag: v0.83~139 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a325e3ecb94587306103879b25cbd7ba7c656f33;p=ceph.git Revert "Remove unused variables in KeyValueStore.cc" This reverts commit 23b657c704865b33aa2e0e39995712c1f583c24d. The get_* methods have side-effects! --- diff --git a/src/os/KeyValueStore.cc b/src/os/KeyValueStore.cc index 18fdac706d9..d1642edf0ad 100644 --- a/src/os/KeyValueStore.cc +++ b/src/os/KeyValueStore.cc @@ -1452,6 +1452,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(); } break;