diff --git a/fdbserver/fdbserver.actor.cpp b/fdbserver/fdbserver.actor.cpp index 352ee0ae6c..c8cd7ec992 100644 --- a/fdbserver/fdbserver.actor.cpp +++ b/fdbserver/fdbserver.actor.cpp @@ -907,9 +907,15 @@ enum Role { }; struct CLIOptions { std::string commandLine; - std::string fileSystemPath = "", dataFolder, connFile = "", seedConnFile = "", seedConnString = "", logFolder = ".", - metricsConnFile = "", metricsPrefix = ""; + std::string fileSystemPath, dataFolder, connFile, seedConnFile, seedConnString, logFolder = ".", metricsConnFile, + metricsPrefix; std::string logGroup = "default"; + uint64_t rollsize = TRACE_DEFAULT_ROLL_SIZE; + uint64_t maxLogsSize = TRACE_DEFAULT_MAX_LOGS_SIZE; + bool maxLogsSizeSet = false; + int maxLogs = 0; + bool maxLogsSet = false; + Role role = FDBD; uint32_t randomSeed = platform::getRandomSeed(); @@ -917,7 +923,10 @@ struct CLIOptions { std::string kvFile; std::string testServersStr; std::string whitelistBinPaths; + std::vector publicAddressStrs, listenAddressStrs; + NetworkAddressList publicAddresses, listenAddresses; + const char* targetKey = NULL; uint64_t memLimit = 8LL << 30; // Nice to maintain the same default value for memLimit and SERVER_KNOBS->SERVER_MEM_LIMIT and @@ -929,11 +938,6 @@ struct CLIOptions { ProcessClass processClass = ProcessClass(ProcessClass::UnsetClass, ProcessClass::CommandLineSource); bool useNet2 = true; bool useThreadPool = false; - uint64_t rollsize = TRACE_DEFAULT_ROLL_SIZE; - uint64_t maxLogsSize = TRACE_DEFAULT_MAX_LOGS_SIZE; - bool maxLogsSizeSet = false; - int maxLogs = 0; - bool maxLogsSet = false; std::vector> knobs; LocalityData localities; int minTesterCount = 1; @@ -946,7 +950,6 @@ struct CLIOptions { bool fileIoWarnOnly = false; uint64_t rsssize = -1; - NetworkAddressList publicAddresses, listenAddresses; Reference connectionFile; Standalone machineId;