--skip: pass option with options_t to agents

This commit is contained in:
Jacob Leverich 2013-03-12 15:33:44 -07:00
parent eb72e0d2ce
commit 0b3abadab1
3 changed files with 3 additions and 1 deletions

View File

@ -256,7 +256,7 @@ void Connection::drive_write_machine(double now) {
issue_something(now); issue_something(now);
stats.log_op(op_queue.size()); stats.log_op(op_queue.size());
if (args.skip_given && op_queue.size() >= (size_t) options.depth) { if (options.skip && op_queue.size() >= (size_t) options.depth) {
next_time += iagen->generate(); next_time += iagen->generate();
while (next_time < now) { while (next_time < now) {

View File

@ -33,6 +33,7 @@ typedef struct {
int threads; int threads;
enum distribution_t iadist; enum distribution_t iadist;
int warmup; int warmup;
bool skip;
bool roundrobin; bool roundrobin;
int server_given; int server_given;

View File

@ -1017,6 +1017,7 @@ void args_to_options(options_t* options) {
strcpy(options->ia, args.iadist_arg); strcpy(options->ia, args.iadist_arg);
options->warmup = args.warmup_given ? args.warmup_arg : 0; options->warmup = args.warmup_given ? args.warmup_arg : 0;
options->oob_thread = false; options->oob_thread = false;
options->skip = args.skip_given;
} }
void init_random_stuff() { void init_random_stuff() {