From: Sage Weil Date: Wed, 4 Sep 2013 05:41:17 +0000 (-0700) Subject: osd/ReplicatedPG: set reply versions for pg ops (PGLS) X-Git-Tag: v0.71~180 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b05f7ea5199fc190a3be887fac4d74417461e1ce;p=ceph.git osd/ReplicatedPG: set reply versions for pg ops (PGLS) Returning the current version for the pgid and last_user_version makes some sense here. Signed-off-by: Sage Weil Reviewed-by: Greg Farnum --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index ef75707ab90..d8aa8b1d02b 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -571,6 +571,7 @@ void ReplicatedPG::do_pg_op(OpRequestRef op) CEPH_OSD_FLAG_ACK | CEPH_OSD_FLAG_ONDISK); reply->set_data(outdata); reply->set_result(result); + reply->set_reply_versions(info.last_update, info.last_user_version); osd->send_message_osd_client(reply, m->get_connection()); delete filter; }