Skip to content

Commit

Permalink
tools/rados/rados.cc: init some vars in constructor
Browse files Browse the repository at this point in the history
Signed-off-by: Danny Al-Gaaf <[email protected]>
  • Loading branch information
dalgaaf committed Mar 11, 2015
1 parent db175fb commit faa7937
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tools/rados/rados.cc
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ class LoadGen {
librados::AioCompletion *completion;

LoadGenOp() {}
LoadGenOp(LoadGen *_lg) : lg(_lg), completion(NULL) {}
LoadGenOp(LoadGen *_lg) : id(0), type(0), off(0), len(0), lg(_lg), completion(NULL) {}
};

int max_op;
Expand Down Expand Up @@ -543,6 +543,7 @@ class LoadGen {
min_op_len = 1024;
target_throughput = 5 * 1024 * 1024; // B/sec
max_op_len = 2 * 1024 * 1024;
max_ops = 0;
max_backlog = target_throughput * 2;
run_length = 60;

Expand Down

0 comments on commit faa7937

Please sign in to comment.