Files
ternfs-XTXMarkets/cpp/cdc/CDC.hpp
Francesco Mazzoli b041d14860 Add second ip/addr for CDC/shards too
This is one of the two data model/protocol changes I want to perform
before going into production, the other being file atime.

Right now the kernel module does not take advantage of this, but
it's OK since I tested the rest of the code reasonably and the goal
here is to perform the protocol/data changes.
2023-06-05 12:14:14 +00:00

17 lines
512 B
C++

#pragma once
#include "Env.hpp"
#include "Shard.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;
};
void runCDC(const std::string& dbDir, const CDCOptions& options);