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