This commit is contained in:
Alexander Kuzmenkov 2020-06-15 17:25:42 +03:00
parent 56869228a2
commit c33b472f9a

View File

@ -363,7 +363,6 @@ private:
try
{
execute(connection_entries, query, distribution(generator));
++queries_executed;
}
catch (...)
{
@ -374,8 +373,15 @@ private:
shutdown = true;
throw;
}
else
{
std::cerr << getCurrentExceptionMessage(print_stacktrace, true) ;
}
}
// Count failed queries toward executed, so that we'd reach
// max_iterations even if every run fails.
++queries_executed;
}
}
void execute(EntryPtrs & connection_entries, Query & query, size_t connection_index)