Skip to content

Commit 9316942

Browse files
committed
added dbReplica option
1 parent b223188 commit 9316942

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/ConfigInfoLoggerServer.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ void ConfigInfoLoggerServer::readFromConfigFile(ConfigFile& config)
3434
config.getOptionalValue<int>(INFOLOGGER_CONFIG_SECTION_NAME_SERVER ".dbNThreads", dbNThreads);
3535
config.getOptionalValue<int>(INFOLOGGER_CONFIG_SECTION_NAME_SERVER ".dbDispatchQueueSize", dbDispatchQueueSize);
3636

37+
config.getOptionalValue<std::string>(INFOLOGGER_CONFIG_SECTION_NAME_SERVER ".dbReplica", dbReplica);
38+
3739
config.getOptionalValue<int>(INFOLOGGER_CONFIG_SECTION_NAME_SERVER ".serverPortTx", serverPortTx);
3840
config.getOptionalValue<int>(INFOLOGGER_CONFIG_SECTION_NAME_SERVER ".maxClientsTx", maxClientsTx);
3941
}

src/ConfigInfoLoggerServer.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ class ConfigInfoLoggerServer
4545
int dbNThreads = 1; // number of insert threads
4646
int dbDispatchQueueSize = 10000; // max number of messages buffered in memory before DB insert
4747

48+
std::string dbReplica = ""; // path to a infologgerserver config file, from which the database settings are read and to which a copy of the messages will be stored
49+
4850
// settings for infoBrowser clients
4951
int serverPortTx = INFOLOGGER_DEFAULT_SERVER_TX_PORT;
5052
int maxClientsTx = 100;

0 commit comments

Comments
 (0)