diff --git a/src/common/obj_bencher.cc b/src/common/obj_bencher.cc index 701a4b5ad0e..32b0abe9235 100644 --- a/src/common/obj_bencher.cc +++ b/src/common/obj_bencher.cc @@ -1176,7 +1176,9 @@ int ObjBencher::clean_up(int num_objects, int prevPid, int concurrentios) { lock.Unlock(); // don't start more completions than files - if (num_objects < concurrentios) { + if (num_objects == 0) { + return 0; + } else if (num_objects < concurrentios) { concurrentios = num_objects; }