[TRAFODION-2626] UDR fix Replace missing break statement.
Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/345e6cd8 Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/345e6cd8 Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/345e6cd8 Branch: refs/heads/master Commit: 345e6cd88c4cbc00651b9c2dd545c82d8af0d5f5 Parents: 2fc08c9 Author: Steve Varnau <[email protected]> Authored: Wed Oct 17 23:41:26 2018 +0000 Committer: Steve Varnau <[email protected]> Committed: Wed Oct 17 23:41:26 2018 +0000 ---------------------------------------------------------------------- core/sql/sqludr/SqlUdrPredefLogReader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafodion/blob/345e6cd8/core/sql/sqludr/SqlUdrPredefLogReader.cpp ---------------------------------------------------------------------- diff --git a/core/sql/sqludr/SqlUdrPredefLogReader.cpp b/core/sql/sqludr/SqlUdrPredefLogReader.cpp index 92a1971..dac87c5 100644 --- a/core/sql/sqludr/SqlUdrPredefLogReader.cpp +++ b/core/sql/sqludr/SqlUdrPredefLogReader.cpp @@ -533,7 +533,7 @@ void ReadCppEventsUDFInterface::processData(UDRInvocationInfo &info, logrootdir = getenv("TRAF_LOG"); if (strlen(logrootdir) > 1000) - throw UDRException(38001, "TRAF_HOME is longer than 1000 characters"); + throw UDRException(38001, "TRAF_LOG is longer than 1000 characters"); std::string logDirName(logrootdir); switch (logLocationIndex) @@ -545,6 +545,7 @@ void ReadCppEventsUDFInterface::processData(UDRInvocationInfo &info, break ; case 2: logDirName += "/rest"; + break ; default: throw UDRException(38001, "Internal error in determining logroot directory"); }
