From 12f0b283fe16b2c05b101aea1ead4cac066c0883 Mon Sep 17 00:00:00 2001 From: robot-clickhouse Date: Sun, 11 Jul 2021 15:43:05 +0300 Subject: [PATCH] Backport #26210 to 21.8: Fix excessive newline in `system.stack_trace` --- src/Storages/System/StorageSystemStackTrace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Storages/System/StorageSystemStackTrace.cpp b/src/Storages/System/StorageSystemStackTrace.cpp index 8b119492340d..7a8ee75803f4 100644 --- a/src/Storages/System/StorageSystemStackTrace.cpp +++ b/src/Storages/System/StorageSystemStackTrace.cpp @@ -223,7 +223,7 @@ void StorageSystemStackTrace::fillData(MutableColumns & res_columns, ContextPtr, { constexpr size_t comm_buf_size = 32; /// More than enough for thread name ReadBufferFromFile comm(thread_name_path.string(), comm_buf_size); - readStringUntilEOF(thread_name, comm); + readEscapedStringUntilEOL(thread_name, comm); comm.close(); }