mirror of
https://github.com/XTXMarkets/ternfs.git
synced 2026-01-24 11:59:58 -06:00
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.
17 lines
512 B
C++
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); |