[ https://issues.apache.org/jira/browse/TRAFODION-2731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16201017#comment-16201017 ]
ASF GitHub Bot commented on TRAFODION-2731: ------------------------------------------- Github user DaveBirdsall commented on a diff in the pull request: https://github.com/apache/incubator-trafodion/pull/1262#discussion_r144143206 --- Diff: core/sql/common/Ipc.cpp --- @@ -4580,44 +4565,21 @@ IpcServerClass::IpcServerClass(IpcEnvironment *env, } if (allocationMethod_ == IPC_ALLOC_DONT_CARE) { -#if (defined(NA_GUARDIAN_IPC)) - // NA_WINNT is set and NA_GUARDIAN_IPC is set - // The standard method on NT is to create a Guardian process - // in order to run in an NT only or simulated environment we can set an environment - // variable to override that mechanism. - if (getenv("SQL_NO_NSK_LITE") == NULL) - { - allocationMethod_ = IPC_LAUNCH_GUARDIAN_PROCESS; - } - else - { - allocationMethod_ = IPC_LAUNCH_NT_PROCESS; - time_t tp; - time(&tp); - nextPort_ = IPC_SQLESP_PORTNUMBER + tp % 10000; // arbitrary - }; - -#else // NA_GUARDIAN_IPC - - // NA_WINNT is set and NA_GUARDIAN_IPC is NOT set - // The standard method on NT is to create an NT process - // We use socket based communication but launch the process ourself rather - // than using INETD. - // Eventually we will use nsk lite to create new processes and to - // communicate via the message system. - // in order to run in an NT only or simulated environment we can set an environment - // variable to override that mechanism. - if (getenv("SQL_NO_NSK_LITE") == NULL) - {allocationMethod_ = IPC_LAUNCH_GUARDIAN_PROCESS; - } - else - { - allocationMethod_ = IPC_LAUNCH_NT_PROCESS; + // NA_WINNT is set and NA_GUARDIAN_IPC is set + // The standard method on NT is to create a Guardian process + // in order to run in an NT only or simulated environment we can set an environment + // variable to override that mechanism. + if (getenv("SQL_NO_NSK_LITE") == NULL) --- End diff -- Do we want to keep the NT code? > CodeCleanup: Remove obsolete, legacy and unused code > ---------------------------------------------------- > > Key: TRAFODION-2731 > URL: https://issues.apache.org/jira/browse/TRAFODION-2731 > Project: Apache Trafodion > Issue Type: Improvement > Reporter: Anoop Sharma > Assignee: Anoop Sharma > Priority: Minor > > There is code in trafodion branch that is leftover from previous product and > is no longer used. > It includes legacy features and code fragments, unneeded ifdef defines and > obsolete files. > Having all that old code makes it difficult to read, understand or make > changes. > This jira is filed to handle removal of obsolete code. > It will be implemented in multiple phases. -- This message was sent by Atlassian JIRA (v6.4.14#64029)