| 382 | } |
| 383 | |
| 384 | void RequestGenerator::getFromConfig(const std::string & key, const Poco::Util::AbstractConfiguration & config) |
| 385 | { |
| 386 | if (config.has(key + ".weight")) |
| 387 | { |
| 388 | weight = config.getUInt64(key + ".weight"); |
| 389 | if (weight == 0) |
| 390 | throw DB::Exception(DB::ErrorCodes::BAD_ARGUMENTS, "Generator weight must be >= 1, got 0 for key '{}'", key); |
| 391 | } |
| 392 | getFromConfigImpl(key, config); |
| 393 | } |
| 394 | |
| 395 | std::string RequestGenerator::description() |
| 396 | { |
no test coverage detected