Alexey Serbin has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/14932 )

Change subject: [monotime] deprecating MonoTime::GetDeltaSince()
......................................................................

[monotime] deprecating MonoTime::GetDeltaSince()

I find that

   MonoTime t0 = ...;
   MonoTime t1 = ...;
   MonoDelta delta = t1 - t0;

is easier to write, read, and understand than

   MonoTime t0 = ...;
   MonoTime t1 = ...;
   MonoDelta delta = t1.GetDeltaSince(t0);

So, I replaced usage of the MonoTime::GetDeltaSince() with
the operator and marked the former method as deprecated.

This patch doesn't contain any functional modifications.

Change-Id: I9611c8a20e02b117757842bc3b46b8faf82d9700
Reviewed-on: http://gerrit.cloudera.org:8080/14932
Reviewed-by: Adar Dembo <[email protected]>
Reviewed-by: Yingchun Lai <[email protected]>
Tested-by: Alexey Serbin <[email protected]>
---
M src/kudu/rpc/result_tracker.cc
M src/kudu/rpc/rpc-test-base.h
M src/kudu/tserver/tablet_copy_service-test.cc
M src/kudu/tserver/tablet_service.cc
M src/kudu/util/monotime-test.cc
M src/kudu/util/monotime.cc
M src/kudu/util/monotime.h
7 files changed, 24 insertions(+), 25 deletions(-)

Approvals:
  Adar Dembo: Looks good to me, approved
  Yingchun Lai: Looks good to me, but someone else must approve
  Alexey Serbin: Verified

--
To view, visit http://gerrit.cloudera.org:8080/14932
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I9611c8a20e02b117757842bc3b46b8faf82d9700
Gerrit-Change-Number: 14932
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Adar Dembo <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <[email protected]>

Reply via email to