Merge remote-tracking branch 'origin/develop' into MXS-122
Conflicts: server/core/CMakeLists.txt server/core/dcb.c server/include/dcb.h server/include/server.h server/modules/protocol/mysql_backend.c
This commit is contained in:
@ -2,8 +2,8 @@ if(LOG_DEBUG)
|
||||
add_definitions(-DSS_LOG_DEBUG)
|
||||
endif()
|
||||
add_library(log_manager SHARED log_manager.cc)
|
||||
target_link_libraries(log_manager pthread aio stdc++ utils)
|
||||
install(TARGETS log_manager DESTINATION lib)
|
||||
target_link_libraries(log_manager pthread aio stdc++)
|
||||
install(TARGETS log_manager DESTINATION ${MAXSCALE_LIBDIR})
|
||||
if(BUILD_TESTS)
|
||||
add_subdirectory(test)
|
||||
endif()
|
||||
|
@ -1764,7 +1764,6 @@ static bool fnames_conf_init(
|
||||
|
||||
case 's':
|
||||
/** record list of log file ids for later use */
|
||||
if(do_syslog)
|
||||
shmem_id_str = optarg;
|
||||
break;
|
||||
case 'h':
|
||||
@ -1796,12 +1795,14 @@ static bool fnames_conf_init(
|
||||
strdup(get_logpath_default()) : fn->fn_logpath;
|
||||
|
||||
/** Set identity string for syslog if it is not set in config.*/
|
||||
if(do_syslog)
|
||||
{
|
||||
syslog_ident_str =
|
||||
(syslog_ident_str == NULL ?
|
||||
(argv == NULL ? strdup(program_invocation_short_name) :
|
||||
strdup(*argv)) :
|
||||
syslog_ident_str);
|
||||
|
||||
}
|
||||
/* ss_dfprintf(stderr, "\n\n\tCommand line : ");
|
||||
for (i=0; i<argc; i++) {
|
||||
ss_dfprintf(stderr, "%s ", argv[i]);
|
||||
|
Reference in New Issue
Block a user