[ https://issues.apache.org/jira/browse/TRAFODION-2637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16063965#comment-16063965 ]
ASF GitHub Bot commented on TRAFODION-2637: ------------------------------------------- Github user DaveBirdsall commented on a diff in the pull request: https://github.com/apache/incubator-trafodion/pull/1141#discussion_r124144781 --- Diff: core/sql/langman/LmJavaOptions.cpp --- @@ -134,6 +134,17 @@ void LmJavaOptions::addOptions(const char *options, NADELETEBASIC(copy, collHeap()); } +CollIndex LmJavaOptions::findByPrefix(const char *prefix) const +{ + size_t prefixLen = strlen(prefix); + + for (CollIndex i=0; i<options_.entries(); i++) + if (strncmp(options_[i], prefix, prefixLen) == 0) --- End diff -- Is it possible for one prefix to be a subset of another? Just making up a possible example: -Xms vs. -Xms2? Would this code behave correctly then? > Library management in the absence of password-less ssh > ------------------------------------------------------ > > Key: TRAFODION-2637 > URL: https://issues.apache.org/jira/browse/TRAFODION-2637 > Project: Apache Trafodion > Issue Type: Bug > Components: sql-general > Affects Versions: 2.1-incubating > Reporter: Hans Zeller > Assignee: Hans Zeller > Fix For: 2.2-incubating > > > We have a set of built-in stored procedures that can be used to deploy > libraries for UDRs to a Trafodion cluster. Some of these stored procedures > rely on the pdsh command, which in turn relies on password-less ssh between > the nodes of a cluster. Some installations, however, don't support > password-less ssh. We therefore need to find another method to distribute the > files. -- This message was sent by Atlassian JIRA (v6.4.14#64029)