We can safely reply if oldv is _older_ than what's on disk. Otherwise the
request ends up on the list and never gets removed again.
Signed-off-by: Sage Weil <sage@newdream.net>
dout(3) << "do_op dup " << ctx->reqid << " was " << oldv << dendl;
delete ctx;
put_object_context(obc);
- if (oldv >= last_update_ondisk) {
+ if (oldv <= last_update_ondisk) {
osd->reply_op_error(op, 0);
} else {
dout(10) << " waiting for " << oldv << " to commit" << dendl;