From 50202c1b0afe15f561d1d8b8e35317b857dd61f7 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Wed, 3 May 2023 22:51:56 +0200 Subject: [PATCH] Minor changes --- src/Common/setThreadName.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Common/setThreadName.cpp b/src/Common/setThreadName.cpp index 29c5bc1865f..0e5fb1d72c6 100644 --- a/src/Common/setThreadName.cpp +++ b/src/Common/setThreadName.cpp @@ -30,10 +30,8 @@ static thread_local char thread_name[THREAD_NAME_SIZE]{}; void setThreadName(const char * name) { -#ifndef NDEBUG if (strlen(name) > THREAD_NAME_SIZE - 1) throw DB::Exception(DB::ErrorCodes::PTHREAD_ERROR, "Thread name cannot be longer than 15 bytes"); -#endif #if defined(OS_FREEBSD) pthread_set_name_np(pthread_self(), name);