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

Enable filter before copy remote for snapshots.

kishorenceaafe484fdcd
diff --git a/src/raft_server.cpp b/src/raft_server.cpp
index 36194b16..2ccfa6d8 100644
--- a/src/raft_server.cpp
+++ b/src/raft_server.cpp
@@ -34,7 +34,7 @@ int ReplicationState::start(const butil::EndPoint & peering_endpoint, const int
node_options.fsm = this;
node_options.node_owns_fsm = false;
node_options.snapshot_interval_s = snapshot_interval_s;
- node_options.filter_before_copy_remote = false;
+ node_options.filter_before_copy_remote = true;
std::string prefix = "local://" + raft_dir;
node_options.log_uri = prefix + "/" + log_dir_name;
node_options.raft_meta_uri = prefix + "/" + meta_dir_name;