From: Sage Weil Date: Sat, 13 Jul 2013 04:52:30 +0000 (-0700) Subject: mon: set forwarded message recv stamp X-Git-Tag: v0.67-rc1~78^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F436%2Fhead;p=ceph.git mon: set forwarded message recv stamp Set it to the stamp of the MForward that carried us. One could argue we really want the original receive stamp on the origin, but that is not available to us, and this is better than nothing. In particular, this gives 'ceph log ...' commands a timestamp when they are forwarded via a peon. The stamp is still between when the request is sent and when it is committed/acked, so all is well from the client's perspective. Signed-off-by: Sage Weil --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index b28a5c071ea..9b665bdad3d 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -2320,6 +2320,9 @@ void Monitor::handle_forward(MForward *m) m->msg = NULL; // so ~MForward doesn't delete it req->set_connection(c); + // not super accurate, but better than nothing. + req->set_recv_stamp(m->get_recv_stamp()); + /* * note which election epoch this is; we will drop the message if * there is a future election since our peers will resend routed