From 90ef56ae165b1a20b8a64fe914d158fba22b77ae Mon Sep 17 00:00:00 2001 From: Dmitry Yemanov Date: Tue, 5 Sep 2023 18:07:46 +0300 Subject: [PATCH] Postfix for replication server in Linux CS --- src/remote/server/os/posix/inet_server.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/remote/server/os/posix/inet_server.cpp b/src/remote/server/os/posix/inet_server.cpp index 863d6c5be9..3b062564ca 100644 --- a/src/remote/server/os/posix/inet_server.cpp +++ b/src/remote/server/os/posix/inet_server.cpp @@ -550,16 +550,16 @@ int CLIB_ROUTINE main( int argc, char** argv) logSecurityDatabaseError(path, status); } } - } // end scope - // Start replication server + // Start replication server - FbLocalStatus localStatus; - if (!REPL_server(&localStatus, replicas, false)) - { - const char* const errorMsg = "Replication server startup error"; - iscLogStatus(errorMsg, localStatus->getErrors()); - Syslog::Record(Syslog::Error, errorMsg); + FbLocalStatus localStatus; + if (!REPL_server(&localStatus, replicas, false)) + { + const char* const errorMsg = "Replication server startup error"; + iscLogStatus(errorMsg, localStatus->getErrors()); + Syslog::Record(Syslog::Error, errorMsg); + } } fb_shutdown_callback(NULL, closePort, fb_shut_exit, port);