move websocket_server_async.cpp

This commit is contained in:
CJ Cobb
2021-05-17 19:44:52 +00:00
parent 1bcfe3aa8b
commit fa8eb67ca6
2 changed files with 526 additions and 1 deletions

View File

@@ -719,7 +719,19 @@ ReportingETL::ReportingETL(
if (config.contains("read_only"))
readOnly_ = config.at("read_only").as_bool();
if (config.contains("online_delete"))
onlineDeleteInterval_ = config.at("online_delete").as_int64();
{
int64_t interval = config.at("online_delete").as_int64();
uint32_t max = std::numeric_limits<uint32_t>::max();
if (interval > max)
{
std::stringstream msg;
msg << "online_delete cannot be greater than "
<< std::to_string(max);
throw std::runtime_error(msg.str());
}
if (interval > 0)
onlineDeleteInterval_ = static_cast<uint32_t>(interval);
}
if (config.contains("extractor_threads"))
extractorThreads_ = config.at("extractor_threads").as_int64();
if (config.contains("txn_threshold"))