]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG: set reply versions on dup op ACK
authorSage Weil <sage@inktank.com>
Wed, 4 Sep 2013 05:40:42 +0000 (22:40 -0700)
committerGreg Farnum <greg@inktank.com>
Wed, 4 Sep 2013 17:25:33 +0000 (10:25 -0700)
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>
src/osd/ReplicatedPG.cc

index 2c96180b13a93cb48d69f553503644a5a3989b25..ef75707ab90dbff514e203e0ca4b62359116e776 100644 (file)
@@ -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;