Index: mariadb-10.6-10.6.5/storage/rocksdb/rocksdb/util/repeatable_thread.h
===================================================================
--- mariadb-10.6-10.6.5.orig/storage/rocksdb/rocksdb/util/repeatable_thread.h
+++ mariadb-10.6-10.6.5/storage/rocksdb/rocksdb/util/repeatable_thread.h
@@ -100,6 +100,7 @@ class RepeatableThread {
   }
 
   void thread() {
+#if 0
 #if defined(_GNU_SOURCE) && defined(__GLIBC_PREREQ)
 #if __GLIBC_PREREQ(2, 12)
     // Set thread name.
@@ -109,6 +110,7 @@ class RepeatableThread {
     assert(ret == 0);
 #endif
 #endif
+#endif
 
     assert(delay_us_ > 0);
     if (!wait(initial_delay_us_)) {
Index: mariadb-10.6-10.6.5/storage/rocksdb/rocksdb/util/threadpool_imp.cc
===================================================================
--- mariadb-10.6-10.6.5.orig/storage/rocksdb/rocksdb/util/threadpool_imp.cc
+++ mariadb-10.6-10.6.5/storage/rocksdb/rocksdb/util/threadpool_imp.cc
@@ -337,6 +337,7 @@ void ThreadPoolImpl::Impl::StartBGThread
       new BGThreadMetadata(this, bgthreads_.size()));
 
 // Set the thread name to aid debugging
+#if 0
 #if defined(_GNU_SOURCE) && defined(__GLIBC_PREREQ)
 #if __GLIBC_PREREQ(2, 12)
     auto th_handle = p_t.native_handle();
@@ -350,6 +351,7 @@ void ThreadPoolImpl::Impl::StartBGThread
     pthread_setname_np(th_handle, thread_name_stream.str().c_str());
 #endif
 #endif
+#endif
     bgthreads_.push_back(std::move(p_t));
   }
 }
Index: mariadb-10.6-10.6.5/storage/rocksdb/rocksdb/utilities/backupable/backupable_db.cc
===================================================================
--- mariadb-10.6-10.6.5.orig/storage/rocksdb/rocksdb/utilities/backupable/backupable_db.cc
+++ mariadb-10.6-10.6.5/storage/rocksdb/rocksdb/utilities/backupable/backupable_db.cc
@@ -732,11 +732,13 @@ Status BackupEngineImpl::Initialize() {
   // background
   for (int t = 0; t < options_.max_background_operations; t++) {
     threads_.emplace_back([this]() {
+#if 0
 #if defined(_GNU_SOURCE) && defined(__GLIBC_PREREQ)
 #if __GLIBC_PREREQ(2, 12)
       pthread_setname_np(pthread_self(), "backup_engine");
 #endif
 #endif
+#endif
       CopyOrCreateWorkItem work_item;
       while (files_to_copy_or_create_.read(work_item)) {
         CopyOrCreateResult result;
