File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -215,6 +215,7 @@ class RadosTestContext {
215215 bool enable_dedup,
216216 std::string chunk_algo,
217217 std::string chunk_size,
218+ size_t max_attr_len,
218219 const char *id = 0 ) :
219220 pool_obj_cont(),
220221 current_snap(0 ),
@@ -226,7 +227,7 @@ class RadosTestContext {
226227 rados_id(id), initialized(false ),
227228 max_size(max_size),
228229 min_stride_size(min_stride_size), max_stride_size(max_stride_size),
229- attr_gen(2000 , 20000 ),
230+ attr_gen(2000 , max_attr_len ),
230231 no_omap(no_omap),
231232 no_sparse(no_sparse),
232233 pool_snaps(pool_snaps),
Original file line number Diff line number Diff line change @@ -523,6 +523,7 @@ int main(int argc, char **argv)
523523 bool enable_dedup = false ;
524524 string chunk_algo = " " ;
525525 string chunk_size = " " ;
526+ size_t max_attr_len = 20000 ;
526527
527528
528529 for (int i = 1 ; i < argc; ++i) {
@@ -554,6 +555,8 @@ int main(int argc, char **argv)
554555 pool_snaps = true ;
555556 else if (strcmp (argv[i], " --write-fadvise-dontneed" ) == 0 )
556557 write_fadvise_dontneed = true ;
558+ else if (strcmp (argv[i], " --max-attr-len" ) == 0 )
559+ max_attr_len = atoi (argv[++i]);
557560 else if (strcmp (argv[i], " --ec-pool" ) == 0 ) {
558561 if (!op_weights.empty ()) {
559562 cerr << " --ec-pool must be specified prior to any ops" << std::endl;
@@ -700,6 +703,7 @@ int main(int argc, char **argv)
700703 enable_dedup,
701704 chunk_algo,
702705 chunk_size,
706+ max_attr_len,
703707 id);
704708
705709 TestOpStat stats;
You can’t perform that action at this time.
0 commit comments