[kudu-CR] Add a FindPointeeOrNull method to map-util
David Ribeiro Alves has submitted this change and it was merged. Change subject: Add a FindPointeeOrNull method to map-util .. Add a FindPointeeOrNull method to map-util This adds a new FindPointeeOrNull to map-util to use with maps having smart pointers as values (like shared_ptr or unique_ptr). The new method returns a raw pointer to the value contained in in the smart pointer, if the key exits or nullptr if it doesn't. Change-Id: I9a5d26bdd39e8d12382eb460cb75e04b645e3b2d Reviewed-on: http://gerrit.cloudera.org:8080/3594 Reviewed-by: David Ribeiro AlvesReviewed-by: Todd Lipcon Tested-by: Kudu Jenkins --- M src/kudu/gutil/map-util.h M src/kudu/util/map-util-test.cc 2 files changed, 27 insertions(+), 0 deletions(-) Approvals: David Ribeiro Alves: Looks good to me, approved Todd Lipcon: Looks good to me, approved Kudu Jenkins: Verified -- To view, visit http://gerrit.cloudera.org:8080/3594 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: merged Gerrit-Change-Id: I9a5d26bdd39e8d12382eb460cb75e04b645e3b2d Gerrit-PatchSet: 6 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: David Ribeiro Alves Gerrit-Reviewer: Alexey Serbin Gerrit-Reviewer: David Ribeiro Alves Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Todd Lipcon
[kudu-CR] Add a FindPointeeOrNull method to map-util
Todd Lipcon has posted comments on this change. Change subject: Add a FindPointeeOrNull method to map-util .. Patch Set 5: Code-Review+2 -- To view, visit http://gerrit.cloudera.org:8080/3594 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I9a5d26bdd39e8d12382eb460cb75e04b645e3b2d Gerrit-PatchSet: 5 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: David Ribeiro AlvesGerrit-Reviewer: Alexey Serbin Gerrit-Reviewer: David Ribeiro Alves Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Todd Lipcon Gerrit-HasComments: No
[kudu-CR] Add a FindPointeeOrNull method to map-util
Kudu Jenkins has posted comments on this change. Change subject: Add a FindPointeeOrNull method to map-util .. Patch Set 5: Build Started http://104.196.14.100/job/kudu-gerrit/2304/ -- To view, visit http://gerrit.cloudera.org:8080/3594 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I9a5d26bdd39e8d12382eb460cb75e04b645e3b2d Gerrit-PatchSet: 5 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: David Ribeiro AlvesGerrit-Reviewer: Alexey Serbin Gerrit-Reviewer: David Ribeiro Alves Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Todd Lipcon Gerrit-HasComments: No
[kudu-CR] Add a FindPointeeOrNull method to map-util
Todd Lipcon has posted comments on this change. Change subject: Add a FindPointeeOrNull method to map-util .. Patch Set 4: Code-Review+2 -- To view, visit http://gerrit.cloudera.org:8080/3594 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I9a5d26bdd39e8d12382eb460cb75e04b645e3b2d Gerrit-PatchSet: 4 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: David Ribeiro AlvesGerrit-Reviewer: Alexey Serbin Gerrit-Reviewer: David Ribeiro Alves Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Todd Lipcon Gerrit-HasComments: No
[kudu-CR] Add a FindPointeeOrNull method to map-util
David Ribeiro Alves has posted comments on this change. Change subject: Add a FindPointeeOrNull method to map-util .. Patch Set 3: (1 comment) http://gerrit.cloudera.org:8080/#/c/3594/3/src/kudu/gutil/map-util.h File src/kudu/gutil/map-util.h: PS3, Line 240: nN > typo Done -- To view, visit http://gerrit.cloudera.org:8080/3594 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I9a5d26bdd39e8d12382eb460cb75e04b645e3b2d Gerrit-PatchSet: 3 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: David Ribeiro AlvesGerrit-Reviewer: Alexey Serbin Gerrit-Reviewer: David Ribeiro Alves Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Todd Lipcon Gerrit-HasComments: Yes
[kudu-CR] Add a FindPointeeOrNull method to map-util
Hello Alexey Serbin, Kudu Jenkins, I'd like you to reexamine a change. Please visit http://gerrit.cloudera.org:8080/3594 to look at the new patch set (#4). Change subject: Add a FindPointeeOrNull method to map-util .. Add a FindPointeeOrNull method to map-util This adds a new FindPointeeOrNull to map-util to use with maps having smart pointers as values (like shared_ptr or unique_ptr). The new method returns a raw pointer to the value contained in in the smart pointer, if the key exits or nullptr if it doesn't. Change-Id: I9a5d26bdd39e8d12382eb460cb75e04b645e3b2d --- M src/kudu/gutil/map-util.h M src/kudu/util/map-util-test.cc 2 files changed, 27 insertions(+), 0 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/94/3594/4 -- To view, visit http://gerrit.cloudera.org:8080/3594 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newpatchset Gerrit-Change-Id: I9a5d26bdd39e8d12382eb460cb75e04b645e3b2d Gerrit-PatchSet: 4 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: David Ribeiro AlvesGerrit-Reviewer: Alexey Serbin Gerrit-Reviewer: David Ribeiro Alves Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Todd Lipcon
[kudu-CR] Add a FindPointeeOrNull method to map-util
Todd Lipcon has posted comments on this change. Change subject: Add a FindPointeeOrNull method to map-util .. Patch Set 3: (1 comment) http://gerrit.cloudera.org:8080/#/c/3594/3/src/kudu/gutil/map-util.h File src/kudu/gutil/map-util.h: PS3, Line 240: nN typo -- To view, visit http://gerrit.cloudera.org:8080/3594 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I9a5d26bdd39e8d12382eb460cb75e04b645e3b2d Gerrit-PatchSet: 3 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: David Ribeiro AlvesGerrit-Reviewer: Alexey Serbin Gerrit-Reviewer: David Ribeiro Alves Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Todd Lipcon Gerrit-HasComments: Yes
[kudu-CR] Add a FindPointeeOrNull method to map-util
Kudu Jenkins has posted comments on this change. Change subject: Add a FindPointeeOrNull method to map-util .. Patch Set 3: Build Started http://104.196.14.100/job/kudu-gerrit/2245/ -- To view, visit http://gerrit.cloudera.org:8080/3594 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I9a5d26bdd39e8d12382eb460cb75e04b645e3b2d Gerrit-PatchSet: 3 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: David Ribeiro AlvesGerrit-Reviewer: Alexey Serbin Gerrit-Reviewer: David Ribeiro Alves Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Todd Lipcon Gerrit-HasComments: No
[kudu-CR] Add a FindPointeeOrNull method to map-util
Hello Kudu Jenkins, I'd like you to reexamine a change. Please visit http://gerrit.cloudera.org:8080/3594 to look at the new patch set (#3). Change subject: Add a FindPointeeOrNull method to map-util .. Add a FindPointeeOrNull method to map-util This adds a new FindPointeeOrNull to map-util to use with maps having smart pointers as values (like shared_ptr or unique_ptr). The new method returns a raw pointer to the value contained in in the smart pointer, if the key exits or nullptr if it doesn't. Change-Id: I9a5d26bdd39e8d12382eb460cb75e04b645e3b2d --- M src/kudu/gutil/map-util.h M src/kudu/util/map-util-test.cc 2 files changed, 27 insertions(+), 0 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/94/3594/3 -- To view, visit http://gerrit.cloudera.org:8080/3594 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newpatchset Gerrit-Change-Id: I9a5d26bdd39e8d12382eb460cb75e04b645e3b2d Gerrit-PatchSet: 3 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: David Ribeiro AlvesGerrit-Reviewer: Alexey Serbin Gerrit-Reviewer: David Ribeiro Alves Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Todd Lipcon
[kudu-CR] Add a FindPointeeOrNull method to map-util
Alexey Serbin has posted comments on this change. Change subject: Add a FindPointeeOrNull method to map-util .. Patch Set 2: (2 comments) http://gerrit.cloudera.org:8080/#/c/3594/2/src/kudu/gutil/map-util.h File src/kudu/gutil/map-util.h: Line 242: // Returns the raw pointer contained in the smart pointer, if the key exists or null if it doesn't. Does it make sense to add something like 'contained in the smart pointer for the first found key'? Line 244: typename Collection::value_type::second_type::element_type* Collection::value_type::second_type::element_type --> Collection::mapped_type::element_type? -- To view, visit http://gerrit.cloudera.org:8080/3594 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I9a5d26bdd39e8d12382eb460cb75e04b645e3b2d Gerrit-PatchSet: 2 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: David Ribeiro AlvesGerrit-Reviewer: Alexey Serbin Gerrit-Reviewer: David Ribeiro Alves Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Todd Lipcon Gerrit-HasComments: Yes
[kudu-CR] Add a FindPointeeOrNull method to map-util
David Ribeiro Alves has posted comments on this change. Change subject: Add a FindPointeeOrNull method to map-util .. Patch Set 1: Verified+1 unrelated failures -- To view, visit http://gerrit.cloudera.org:8080/3594 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I9a5d26bdd39e8d12382eb460cb75e04b645e3b2d Gerrit-PatchSet: 1 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: David Ribeiro AlvesGerrit-Reviewer: David Ribeiro Alves Gerrit-Reviewer: Kudu Jenkins Gerrit-HasComments: No
[kudu-CR] Add a FindPointeeOrNull method to map-util
Kudu Jenkins has posted comments on this change. Change subject: Add a FindPointeeOrNull method to map-util .. Patch Set 1: Build Started http://104.196.14.100/job/kudu-gerrit/2232/ -- To view, visit http://gerrit.cloudera.org:8080/3594 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I9a5d26bdd39e8d12382eb460cb75e04b645e3b2d Gerrit-PatchSet: 1 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: David Ribeiro AlvesGerrit-Reviewer: Kudu Jenkins Gerrit-HasComments: No
[kudu-CR] Add a FindPointeeOrNull method to map-util
David Ribeiro Alves has uploaded a new change for review. http://gerrit.cloudera.org:8080/3594 Change subject: Add a FindPointeeOrNull method to map-util .. Add a FindPointeeOrNull method to map-util This adds a new FindPointeeOrNull to map-util to use with maps having smart pointers as values (like shared_ptr or unique_ptr). The new method returns a raw pointer to the value contained in in the smart pointer, if the key exits or nullptr if it doesn't. Change-Id: I9a5d26bdd39e8d12382eb460cb75e04b645e3b2d --- M src/kudu/gutil/map-util.h M src/kudu/util/map-util-test.cc 2 files changed, 26 insertions(+), 0 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/94/3594/1 -- To view, visit http://gerrit.cloudera.org:8080/3594 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9a5d26bdd39e8d12382eb460cb75e04b645e3b2d Gerrit-PatchSet: 1 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: David Ribeiro Alves