Merge branch '1.0'

This commit is contained in:
Alexey Kopytov
2018-12-22 20:13:15 +03:00
2 changed files with 9 additions and 0 deletions

View File

@ -925,6 +925,7 @@ static void *eventgen_thread_proc(void *arg)
log_text(LOG_FATAL,
"The event queue is full. This means the worker threads are "
"unable to keep up with the specified event generation rate");
sb_globals.error = 1;
return NULL;
}

8
tests/t/opt_rate.t Normal file
View File

@ -0,0 +1,8 @@
########################################################################
Tests for the --rate option (aka the limited rate mode)
########################################################################
# Failing to deliver the requested rate should result in a non-zero exit code
$ sysbench --rate=2000000000 cpu run --verbosity=1
FATAL: The event queue is full. This means the worker threads are unable to keep up with the specified event generation rate
[1]