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
C++ algoliadatastoreelasticsearchenterprise-searchfacetingfull-text-searchfuzzy-searchgeosearchin-memoryinstantsearchmerchandisingpineconesearchsearch-enginesemantic-searchsimilarity-searchsite-searchsynonymstypo-tolerancevector-search
Fix spurious logs when nodes file is empty.
Kishore Nallan8a516e626ddc
diff --git a/src/typesense_server_utils.cpp b/src/typesense_server_utils.cppindex 8b4fdad5..cef97f6c 100644--- a/src/typesense_server_utils.cpp+++ b/src/typesense_server_utils.cpp@@ -299,15 +299,14 @@ int start_raft_server(ReplicationState& replication_state, const std::string& stconst Option<std::string> & refreshed_nodes_op = Config::fetch_nodes_config(path_to_nodes);if(!refreshed_nodes_op.ok()) {LOG(WARNING) << "Error while refreshing peer configuration: " << refreshed_nodes_op.error();- continue;- }-- const std::string& nodes_config = ReplicationState::to_nodes_config(peering_endpoint, api_port,- refreshed_nodes_op.get());- replication_state.refresh_nodes(nodes_config, raft_counter, reset_peers_on_error);+ } else {+ const std::string& nodes_config = ReplicationState::to_nodes_config(peering_endpoint, api_port,+ refreshed_nodes_op.get());+ replication_state.refresh_nodes(nodes_config, raft_counter, reset_peers_on_error);- if(raft_counter % 60 == 0) {- replication_state.do_snapshot(nodes_config);+ if(raft_counter % 60 == 0) {+ replication_state.do_snapshot(nodes_config);+ }}}