You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Mike Percy (Code Review)" <ge...@cloudera.org> on 2016/08/11 09:41:47 UTC

[kudu-CR] Timestamp::FromUint64 should return void

Hello Todd Lipcon,

I'd like you to do a code review.  Please visit

    http://gerrit.cloudera.org:8080/3943

to review the following change.

Change subject: Timestamp::FromUint64 should return void
......................................................................

Timestamp::FromUint64 should return void

It does no validation, can't fail, and has the same signature as one of
Timestamp's explicit constructors.

Change-Id: I98d487abb7b9e947b6c8c0a291812f790407242e
---
M src/kudu/common/timestamp.cc
M src/kudu/common/timestamp.h
M src/kudu/tablet/delta_stats.cc
M src/kudu/tablet/tablet_bootstrap.cc
4 files changed, 5 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/43/3943/1
-- 
To view, visit http://gerrit.cloudera.org:8080/3943
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I98d487abb7b9e947b6c8c0a291812f790407242e
Gerrit-PatchSet: 1
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>

[kudu-CR] Timestamp::FromUint64 should return void

Posted by "Todd Lipcon (Code Review)" <ge...@cloudera.org>.
Todd Lipcon has posted comments on this change.

Change subject: Timestamp::FromUint64 should return void
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/3943/1/src/kudu/common/timestamp.h
File src/kudu/common/timestamp.h:

Line 61:   void FromUint64(uint64_t value);
hrm, maybe better to just remove this and use: ts = Timestamp(value) instead?


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I98d487abb7b9e947b6c8c0a291812f790407242e
Gerrit-PatchSet: 1
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>
Gerrit-HasComments: Yes

[kudu-CR] Timestamp::FromUint64 should return void

Posted by "Kudu Jenkins (Code Review)" <ge...@cloudera.org>.
Kudu Jenkins has posted comments on this change.

Change subject: Timestamp::FromUint64 should return void
......................................................................


Patch Set 1:

Build Started http://104.196.14.100/job/kudu-gerrit/2813/

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

Gerrit-MessageType: comment
Gerrit-Change-Id: I98d487abb7b9e947b6c8c0a291812f790407242e
Gerrit-PatchSet: 1
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>
Gerrit-HasComments: No

[kudu-CR] Timestamp::FromUint64 should return void

Posted by "Todd Lipcon (Code Review)" <ge...@cloudera.org>.
Todd Lipcon has posted comments on this change.

Change subject: Timestamp::FromUint64 should return void
......................................................................


Patch Set 1: Code-Review+2

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

Gerrit-MessageType: comment
Gerrit-Change-Id: I98d487abb7b9e947b6c8c0a291812f790407242e
Gerrit-PatchSet: 1
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>
Gerrit-HasComments: No

[kudu-CR] Timestamp::FromUint64 should return void

Posted by "Mike Percy (Code Review)" <ge...@cloudera.org>.
Mike Percy has submitted this change and it was merged.

Change subject: Timestamp::FromUint64 should return void
......................................................................


Timestamp::FromUint64 should return void

It does no validation, can't fail, and has the same signature as one of
Timestamp's explicit constructors.

Change-Id: I98d487abb7b9e947b6c8c0a291812f790407242e
Reviewed-on: http://gerrit.cloudera.org:8080/3943
Tested-by: Kudu Jenkins
Reviewed-by: Todd Lipcon <to...@apache.org>
---
M src/kudu/common/timestamp.cc
M src/kudu/common/timestamp.h
M src/kudu/tablet/delta_stats.cc
M src/kudu/tablet/tablet_bootstrap.cc
4 files changed, 5 insertions(+), 7 deletions(-)

Approvals:
  Todd Lipcon: Looks good to me, approved
  Kudu Jenkins: Verified



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I98d487abb7b9e947b6c8c0a291812f790407242e
Gerrit-PatchSet: 2
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>

[kudu-CR] Timestamp::FromUint64 should return void

Posted by "Mike Percy (Code Review)" <ge...@cloudera.org>.
Mike Percy has posted comments on this change.

Change subject: Timestamp::FromUint64 should return void
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/3943/1/src/kudu/common/timestamp.h
File src/kudu/common/timestamp.h:

Line 61:   void FromUint64(uint64_t value);
> hrm, maybe better to just remove this and use: ts = Timestamp(value) instea
I don't know if it helps to not provide this mutation method because we also have bool DecodeFrom(Slice *input), as well as symmetrical methods ToUint64() and EncodeTo(faststring* s)


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I98d487abb7b9e947b6c8c0a291812f790407242e
Gerrit-PatchSet: 1
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>
Gerrit-HasComments: Yes