Skip to content

Commit 13393aa

Browse files
authored
fix: crash when WITH_SEARCH=OFF (#5867)
1 parent 7abc6a9 commit 13393aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/server/main_service.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,9 @@ void Service::Init(util::AcceptServer* acceptor, std::vector<facade::Listener*>
970970
config_registry.RegisterMutable("timeout");
971971
config_registry.RegisterMutable("send_timeout");
972972
config_registry.RegisterMutable("managed_service_info");
973+
#ifdef WITH_SEARCH
973974
config_registry.RegisterMutable("MAXSEARCHRESULTS");
975+
#endif
974976

975977
config_registry.RegisterMutable(
976978
"notify_keyspace_events", [pool = &pp_](const absl::CommandLineFlag& flag) {

0 commit comments

Comments
 (0)