]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client/SyntheticClient.cc: remove dead code
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 1 Oct 2014 15:01:17 +0000 (17:01 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 1 Oct 2014 15:05:01 +0000 (17:05 +0200)
Fix for:

const: At condition do_sync, the value of do_sync must be equal to 0.
dead_error_condition: The condition do_sync cannot be true.
CID 716893 (#1 of 1): Logically dead code (DEADCODE)
dead_error_begin: Execution cannot reach this statement op.OSDOp()

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

index bf8491aeca3a744c74262775a7f7af5b146597c8..4dc2ad7f4018cb8d04a1b860a187a397645d1787 100644 (file)
@@ -2325,8 +2325,6 @@ int SyntheticClient::object_rw(int nobj, int osize, int wrpc,
   bufferlist bl;
   bl.push_back(bp);
 
-  bool do_sync = false;
-
   // start with odd number > nobj
   rjhash<uint32_t> h;
   unsigned prime = nobj + 1;             // this is the minimum!
@@ -2382,11 +2380,6 @@ int SyntheticClient::object_rw(int nobj, int osize, int wrpc,
       op.op.extent.length = osize;
       op.indata = bl;
       m.ops.push_back(op);
-      if (do_sync) {
-        OSDOp op;
-        op.op.op = CEPH_OSD_OP_STARTSYNC;
-       m.ops.push_back(op);
-      }
       client->objecter->mutate(oid, oloc, m, snapc, ceph_clock_now(client->cct), 0,
                               NULL, new C_Ref(lock, cond, &unack));
     } else {