ctx->modify no longer implies that the operation is a write,
if it ever did. These days op->may_write() is checked reliably
on the OSD, so just use that instead.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
return;
}
- bool successful_write = !ctx->op_t->empty() && ctx->modify && result >= 0;
+ bool successful_write = !ctx->op_t->empty() && op->may_write() && result >= 0;
// prepare the reply
ctx->reply = new MOSDOpReply(m, 0, get_osdmap()->get_epoch(), 0,
successful_write);