Skip to content

Commit c7121fd

Browse files
authored
[fix](cloud) Fix brpc::Server::ClearServices() SEGV (#59717)
1 parent 6e0a6a0 commit c7121fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cloud/test/meta_server_test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ int main(int argc, char** argv) {
5555
return -1;
5656
}
5757

58+
// Clear the secondary package name for testing, to avoid brpc::Server::~Server() SEGV
59+
config::secondary_package_name = "";
5860
if (!cloud::init_glog("meta_server_test")) {
5961
std::cerr << "failed to init glog" << std::endl;
6062
return -1;

0 commit comments

Comments
 (0)