Skip to content

Commit

Permalink
Merge pull request #12826 from LiumxNL/fix-op-tracker-initiate
Browse files Browse the repository at this point in the history
mon: optracker's initiated_at timestamp should not be NULL

Reviewed-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
tchaikov committed Jan 11, 2017
2 parents ab9d375 + ecb967a commit 55c5fdd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mon/MonOpRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ 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().is_zero() ?
req->get_recv_stamp() : ceph_clock_now()),
request(req),
session(NULL),
con(NULL),
Expand Down

0 comments on commit 55c5fdd

Please sign in to comment.