mirror of
https://github.com/XTXMarkets/ternfs.git
synced 2025-12-30 15:30:28 -06:00
Alert while initializing shard DB
This commit is contained in:
@@ -917,9 +917,6 @@ void runCDC(const std::string& dbDir, const CDCOptions& options) {
|
||||
LOG_INFO(env, " syslog = %s", (int)options.syslog);
|
||||
}
|
||||
|
||||
CDCDB db(logger, xmon, dbDir);
|
||||
auto shared = std::make_unique<CDCShared>(db);
|
||||
|
||||
// xmon first, so that by the time it shuts down it'll have all the leftover requests
|
||||
if (xmon) {
|
||||
XmonConfig config;
|
||||
@@ -932,6 +929,9 @@ void runCDC(const std::string& dbDir, const CDCOptions& options) {
|
||||
undertaker->checkin(std::move(xmonRunner), tid, "xmon");
|
||||
}
|
||||
|
||||
CDCDB db(logger, xmon, dbDir);
|
||||
auto shared = std::make_unique<CDCShared>(db);
|
||||
|
||||
{
|
||||
auto server = std::make_unique<CDCServer>(logger, xmon, options, *shared);
|
||||
pthread_t tid;
|
||||
|
||||
Reference in New Issue
Block a user