Hao Hao has posted comments on this change. ( http://gerrit.cloudera.org:8080/11720 )
Change subject: [sentry] improve SentryAction ...................................................................... Patch Set 2: (1 comment) http://gerrit.cloudera.org:8080/#/c/11720/2/src/kudu/sentry/sentry_action.h File src/kudu/sentry/sentry_action.h: http://gerrit.cloudera.org:8080/#/c/11720/2/src/kudu/sentry/sentry_action.h@66 PS2, Line 66: static Status FromString(const std::string& str, Action* action); > I suggested adding the UNINITIALIZED enum so a default constructor could ex Yes, Andrew suggested to add UNINITIALIZED enum to avoid undefined behavior of Imply() with default constructor https://gerrit.cloudera.org/#/c/11656/3/src/kudu/sentry/sentry_action-test.cc@95. And my understanding is you suggested to not add a new enum but explicitly delete the default constructor to avoid the UB as https://gerrit.cloudera.org/#/c/11656/6/src/kudu/sentry/sentry_action.h@46? Maybe my understanding is wrong? -- To view, visit http://gerrit.cloudera.org:8080/11720 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Icc6c0fb2a33a24745936c96363390e776b24513f Gerrit-Change-Number: 11720 Gerrit-PatchSet: 2 Gerrit-Owner: Hao Hao <[email protected]> Gerrit-Reviewer: Adar Dembo <[email protected]> Gerrit-Reviewer: Andrew Wong <[email protected]> Gerrit-Reviewer: Hao Hao <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Comment-Date: Fri, 19 Oct 2018 16:37:05 +0000 Gerrit-HasComments: Yes
