client/SyntheticClient.cc: remove dead code

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>
This commit is contained in:
Danny Al-Gaaf 2014-10-01 17:01:17 +02:00
parent 88022e8221
commit 58c732f3e5

View 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 {