diff --git a/db_stress_tool/no_batched_ops_stress.cc b/db_stress_tool/no_batched_ops_stress.cc index 86a1b4a7d..ff9ca38a8 100644 --- a/db_stress_tool/no_batched_ops_stress.cc +++ b/db_stress_tool/no_batched_ops_stress.cc @@ -1029,6 +1029,10 @@ class NonBatchedOpsStressTest : public StressTest { s = sst_file_writer.Put(Slice(key_str), Slice(value, value_len)); } + if (s.ok() && keys.empty()) { + return; + } + if (s.ok()) { s = sst_file_writer.Finish(); }