mirror of
https://github.com/XTXMarkets/ternfs.git
synced 2026-02-14 14:29:12 -06:00
Running in valgrind seems to just not be able to process a small FullReadDirReq in 100ms, which is a bit concerning, but I'll let it slide for now.
19 lines
568 B
C++
19 lines
568 B
C++
#pragma once
|
|
|
|
#include "Env.hpp"
|
|
#include "Shard.hpp"
|
|
#include "Time.hpp"
|
|
|
|
struct CDCOptions {
|
|
LogLevel logLevel = LogLevel::LOG_INFO;
|
|
std::string logFile = ""; // if empty, stdout
|
|
uint16_t port = 0; // chosen randomly and recorded in shuckle
|
|
std::string shuckleHost = "";
|
|
uint16_t shucklePort = 0;
|
|
// The second will be used if the ip is non-null
|
|
std::array<IpPort, 2> ipPorts = {IpPort(0, 0), IpPort(0, 0)};
|
|
bool syslog = false;
|
|
Duration shardTimeout = 100_ms;
|
|
};
|
|
|
|
void runCDC(const std::string& dbDir, const CDCOptions& options); |