Dan Burkert has uploaded a new change for review. http://gerrit.cloudera.org:8080/7399
Change subject: util: add Status::AndThen combinator ...................................................................... util: add Status::AndThen combinator The AndThen combinator makes it easier to chain together Status-returning operations when failure recovery is something other than returning early. RETURN_NOT_OK already handles the return-early case elegantly. Also tweaks Status::CloneAndPrepend and Status::CloneAndAppend to be usable with OK status values. Change-Id: Ia6e1a79ff95406825d4238a8157d242252562805 --- M src/kudu/util/status-test.cc M src/kudu/util/status.cc M src/kudu/util/status.h 3 files changed, 60 insertions(+), 2 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/99/7399/1 -- To view, visit http://gerrit.cloudera.org:8080/7399 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia6e1a79ff95406825d4238a8157d242252562805 Gerrit-PatchSet: 1 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: Dan Burkert <[email protected]>
