Skip to content

Commit

Permalink
mon: we may track a self-initiated message, recv_stamp remain unset
Browse files Browse the repository at this point in the history
so using ceph_clock_now() instead to make optracker happy

Signed-off-by: Mingxin Liu <mingxin@xsky.com>
  • Loading branch information
LiumxNL committed Jan 9, 2017
1 parent a7b7862 commit b6076e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mon/MonOpRequest.h
Expand Up @@ -86,7 +86,8 @@ struct MonOpRequest : public TrackedOp {
op_type_t op_type;

MonOpRequest(Message *req, OpTracker *tracker) :
TrackedOp(tracker, req->get_recv_stamp()),
TrackedOp(tracker,
req->get_recv_stamp() ? req->get_recv_stamp() : ceph_clock_now()),
request(req),
session(NULL),
con(NULL),
Expand Down

0 comments on commit b6076e3

Please sign in to comment.