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 <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
(cherry picked from commit b05f7ea519)
This commit is contained in:
Sage Weil 2013-09-03 22:41:17 -07:00
parent c4414a34b0
commit dfcee0cbee

View File

@ -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;
}