From 6ba8afc44347e0408bcf254bff8ae54d2eadaecf Mon Sep 17 00:00:00 2001 From: Sema Checherinda Date: Sun, 17 Nov 2024 11:52:51 +0100 Subject: [PATCH] fix benchmark --- programs/benchmark/Benchmark.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/programs/benchmark/Benchmark.cpp b/programs/benchmark/Benchmark.cpp index 86cc2ebe92f..19fd46b5f1a 100644 --- a/programs/benchmark/Benchmark.cpp +++ b/programs/benchmark/Benchmark.cpp @@ -36,6 +36,7 @@ #include #include #include +#include "IO/WriteBuffer.h" /** A tool for evaluating ClickHouse performance. @@ -223,7 +224,7 @@ private: ContextMutablePtr global_context; QueryProcessingStage::Enum query_processing_stage; - WriteBufferFromFileDescriptor log{STDERR_FILENO}; + AutoFinalizedWriteBuffer log{STDERR_FILENO}; std::atomic consecutive_errors{0};