From d4eaa4579e086bc0a9090825b3963cb8f0678802 Mon Sep 17 00:00:00 2001 From: Yang Liming Date: Tue, 23 Apr 2024 10:11:46 +0800 Subject: [PATCH] dummy server start with bthread self tag --- src/brpc/server.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/brpc/server.cpp b/src/brpc/server.cpp index 9d938c6bc9..3ab7562e17 100644 --- a/src/brpc/server.cpp +++ b/src/brpc/server.cpp @@ -1889,6 +1889,7 @@ int StartDummyServerAt(int port, ProfilerLinker) { "DummyServerOf(%s)", GetProgramName())); ServerOptions options; options.num_threads = 0; + options.bthread_tag = bthread_self_tag(); if (dummy_server->Start(port, &options) != 0) { LOG(ERROR) << "Fail to start dummy_server at port=" << port; return -1;