Due to --testrecovery needing to take OSDs offline in some tests, it is not compatible with the --parallel option, so it is now configured to return an error to the user in this case.
Signed-off-by: Jon Bailey <jonathan.bailey1@ibm.com>
allow_pool_scrubbing = vm.contains("allow_pool_scrubbing");
disable_pool_ec_optimizations = vm.contains("disable_pool_ec_optimizations");
+ if (testrecovery && (num_objects > 1)) {
+ throw std::invalid_argument("testrecovery option not allowed if parallel is"
+ " specified, except when parallel=1 is used");
+ }
+
if (!dryrun) {
guard.emplace(boost::asio::make_work_guard(asio));
thread = make_named_thread("io_thread", [&asio = asio] { asio.run(); });