Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Properly send analytics ptr.

Kishore Nallan0eae0819ff41
diff --git a/src/typesense_server_utils.cpp b/src/typesense_server_utils.cpp
index 94f0395e..cfd31c3a 100644
--- a/src/typesense_server_utils.cpp
+++ b/src/typesense_server_utils.cpp
@@ -466,7 +466,8 @@ int run_server(const Config & config, const std::string & version, void (*master
// first we start the peering service
- ReplicationState replication_state(server, batch_indexer, &store, &analytics_store,
+ auto analytics_store_ptr = analytics_dir.empty() ? nullptr : &analytics_store;
+ ReplicationState replication_state(server, batch_indexer, &store, analytics_store_ptr,
&replication_thread_pool, server->get_message_dispatcher(),
ssl_enabled,
&config,