]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/objectstore: fix unused variable warnings
authorKefu Chai <kchai@redhat.com>
Thu, 21 Jan 2016 17:37:58 +0000 (09:37 -0800)
committerKefu Chai <kchai@redhat.com>
Thu, 21 Jan 2016 17:37:58 +0000 (09:37 -0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/objectstore/ObjectStoreTransactionBenchmark.cc

index 5b624dae983359ee9f68e267645edd1a499a22b5..7c0dc0915211dac847cb910408e7fcb31a612964 100644 (file)
@@ -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<string, bufferptr> 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<string> keys;
           i.decode_keyset(keys);