summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-09-03 22:41:17 -0700
committerSage Weil <sage@inktank.com>2013-09-03 22:41:17 -0700
commit6c0412c4c028f7022232fe97493608751264150c (patch)
treeecbd06936dfd1e160568a5f4281c6184d3692bf7
parent0bb66fd17c55f67e19abaeed098f49cfeac82ffb (diff)
downloadceph-6c0412c4c028f7022232fe97493608751264150c.tar.gz
osd/ReplicatedPG: set reply versions for pg ops (PGLS)wip-6222
Returning the current version for the pgid and last_user_version makes some sense here. Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r--src/osd/ReplicatedPG.cc1
1 files changed, 1 insertions, 0 deletions
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;
}