David Ribeiro Alves has submitted this change and it was merged. Change subject: [Timestamp] use 'operator<' instead of ComesBefore ......................................................................
[Timestamp] use 'operator<' instead of ComesBefore Added more syntactic sugar, now for the kudu::Timestamp class: use operator{<, <=, >, <=, ==} instead of Timestamp::ComesBefore() and Timestamp::CompareTo(), where possible. Besides, this patch contains a minor clean-up on the of header files and forward declarations. This patch does not contain any functional changes. Change-Id: I4a5b0f90e92f6de40822cfe872b417cf0c53121a Reviewed-on: http://gerrit.cloudera.org:8080/5096 Tested-by: Kudu Jenkins Reviewed-by: David Ribeiro Alves <dral...@apache.org> --- M src/kudu/common/timestamp.cc M src/kudu/common/timestamp.h M src/kudu/server/hybrid_clock.cc M src/kudu/tablet/compaction.h M src/kudu/tablet/delta_stats.cc M src/kudu/tablet/mvcc-test.cc M src/kudu/tablet/mvcc.cc M src/kudu/tablet/mvcc.h M src/kudu/tserver/tablet_service.cc 9 files changed, 75 insertions(+), 54 deletions(-) Approvals: David Ribeiro Alves: Looks good to me, approved Kudu Jenkins: Verified -- To view, visit http://gerrit.cloudera.org:8080/5096 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: merged Gerrit-Change-Id: I4a5b0f90e92f6de40822cfe872b417cf0c53121a Gerrit-PatchSet: 6 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: Alexey Serbin <aser...@cloudera.com> Gerrit-Reviewer: Adar Dembo <a...@cloudera.com> Gerrit-Reviewer: Alexey Serbin <aser...@cloudera.com> Gerrit-Reviewer: David Ribeiro Alves <dral...@apache.org> Gerrit-Reviewer: Dinesh Bhat <din...@cloudera.com> Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Tidy Bot Gerrit-Reviewer: Todd Lipcon <t...@apache.org>