[db] Add thread name/id to db wait unlock

This commit is contained in:
Christian Meffert
2025-02-15 20:03:13 +00:00
committed by ejurgensen
parent 5fec4bbe34
commit 5acf9dd336
4 changed files with 8 additions and 6 deletions

View File

@@ -1820,7 +1820,7 @@ thread_getnametid(char *buf, size_t len)
pthread_t p = pthread_self();
thread_getname(p, thread_name, sizeof(thread_name));
tid = thread_gettid();
tid = thread_gettid() % 10000;
snprintf(buf, len, "%s (%d)", thread_name, tid);
}