Skip to content

Commit

Permalink
rgw: loadgen fix generate random object name rgw crash issue
Browse files Browse the repository at this point in the history
Signed-off-by: Enming Zhang <enming.zhang@umcloud.com>
  • Loading branch information
ZVampirEM77 committed Oct 25, 2017
1 parent 849c215 commit 779f925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rgw/rgw_loadgen_process.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void RGWLoadGenProcess::run()

for (i = 0; i < num_objs; i++) {
char buf[16 + 1];
gen_rand_alphanumeric(NULL, buf, sizeof(buf));
gen_rand_alphanumeric(cct, buf, sizeof(buf));
buf[16] = '\0';
objs[i] = buckets[i % num_buckets] + "/" + buf;
}
Expand Down

0 comments on commit 779f925

Please sign in to comment.