diff options
author | Sage Weil <sage@inktank.com> | 2013-09-03 22:40:42 -0700 |
---|---|---|
committer | Greg Farnum <greg@inktank.com> | 2013-09-04 10:25:33 -0700 |
commit | 5148aac73d50593217455619bef95b8e1b296e10 (patch) | |
tree | 27771dd22c422de6c38f437c6fd6a393b3f0f8a1 | |
parent | f566102c3cdb93092db49f22bca0455d5a992e9d (diff) | |
download | ceph-5148aac73d50593217455619bef95b8e1b296e10.tar.gz |
osd/ReplicatedPG: set reply versions on dup op ACK
All other MOSDOpReply creators do this, with the exception of the pg
op.
Fixes: #6222
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
-rw-r--r-- | src/osd/ReplicatedPG.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 2c96180b13a..ef75707ab90 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -915,6 +915,7 @@ void ReplicatedPG::execute_ctx(OpContext *ctx) if (already_ack(oldv)) { MOSDOpReply *reply = new MOSDOpReply(m, 0, get_osdmap()->get_epoch(), 0); reply->add_flags(CEPH_OSD_FLAG_ACK); + reply->set_reply_versions(oldv, entry->user_version); osd->send_message_osd_client(reply, m->get_connection()); } else { dout(10) << " waiting for " << oldv << " to ack" << dendl; |