From efda609f668fa893e3a41974bf6be3b47c2d6d32 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Tue, 27 Dec 2016 13:11:39 -0500 Subject: [PATCH] log: remove path from thread name The thread name has an arbitrarily limited size, and we are eventually removing support for multiple paths in a single bees daemon process. Signed-off-by: Zygo Blaxell --- src/bees-hash.cc | 2 +- src/bees-roots.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bees-hash.cc b/src/bees-hash.cc index 32a3480..c84a135 100644 --- a/src/bees-hash.cc +++ b/src/bees-hash.cc @@ -595,7 +595,7 @@ BeesHashTable::BeesHashTable(shared_ptr ctx, string filename, off_t m_buckets(0), m_cells(0), m_writeback_thread("hash_writeback"), - m_prefetch_thread("hash_prefetch " + m_ctx->root_path()), + m_prefetch_thread("hash_prefetch"), m_flush_rate_limit(BEES_FLUSH_RATE), m_prefetch_rate_limit(BEES_FLUSH_RATE), m_stats_file(m_ctx->home_fd(), "beesstats.txt") diff --git a/src/bees-roots.cc b/src/bees-roots.cc index 4bb19eb..75f11af 100644 --- a/src/bees-roots.cc +++ b/src/bees-roots.cc @@ -358,8 +358,8 @@ BeesRoots::state_load() BeesRoots::BeesRoots(shared_ptr ctx) : m_ctx(ctx), m_crawl_state_file(ctx->home_fd(), crawl_state_filename()), - m_crawl_thread("crawl " + ctx->root_path()), - m_writeback_thread("crawl_writeback " + ctx->root_path()) + m_crawl_thread("crawl"), + m_writeback_thread("crawl_writeback") { m_crawl_thread.exec([&]() { catch_all([&]() {