diff --git a/db/db_bench.cc b/db/db_bench.cc index a07798b41..a0d767ea6 100644 --- a/db/db_bench.cc +++ b/db/db_bench.cc @@ -2262,6 +2262,7 @@ class Benchmark { // Compress 1G while (ok && bytes < int64_t(1) << 30) { + compressed.clear(); ok = CompressSlice(input, &compressed); produced += compressed.size(); bytes += input.size();