From: Kefu Chai Date: Thu, 21 Jan 2016 17:37:58 +0000 (-0800) Subject: test/objectstore: fix unused variable warnings X-Git-Tag: v10.0.4~183^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c74eeb53f3a41d0ce4aedad7f38ef24397ebc923;p=ceph.git test/objectstore: fix unused variable warnings Signed-off-by: Kefu Chai --- diff --git a/src/test/objectstore/ObjectStoreTransactionBenchmark.cc b/src/test/objectstore/ObjectStoreTransactionBenchmark.cc index 5b624dae9833..7c0dc0915211 100644 --- a/src/test/objectstore/ObjectStoreTransactionBenchmark.cc +++ b/src/test/objectstore/ObjectStoreTransactionBenchmark.cc @@ -92,7 +92,6 @@ class Transaction { switch (op->op) { case ObjectStore::Transaction::OP_WRITE: { - coll_t cid = i.get_cid(op->cid); ghobject_t oid = i.get_oid(op->oid); bufferlist bl; i.decode_bl(bl); @@ -100,7 +99,6 @@ class Transaction { break; case ObjectStore::Transaction::OP_SETATTR: { - coll_t cid = i.get_cid(op->cid); ghobject_t oid = i.get_oid(op->oid); string name = i.decode_string(); bufferlist bl; @@ -111,7 +109,6 @@ class Transaction { break; case ObjectStore::Transaction::OP_OMAP_SETKEYS: { - coll_t cid = i.get_cid(op->cid); ghobject_t oid = i.get_oid(op->oid); map aset; i.decode_attrset(aset); @@ -119,7 +116,6 @@ class Transaction { break; case ObjectStore::Transaction::OP_OMAP_RMKEYS: { - coll_t cid = i.get_cid(op->cid); ghobject_t oid = i.get_oid(op->oid); set keys; i.decode_keyset(keys);