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

Fix on-demand snapshot.

Kishore Nallan2591231a0b25
diff --git a/include/raft_server.h b/include/raft_server.h
index 52252894..9bd3874a 100644
--- a/include/raft_server.h
+++ b/include/raft_server.h
@@ -66,13 +66,13 @@ public:
class OnDemandSnapshotClosure : public braft::Closure {
private:
ReplicationState* replication_state;
- const std::shared_ptr<http_req>& req;
- const std::shared_ptr<http_res>& res;
+ const std::shared_ptr<http_req> req;
+ const std::shared_ptr<http_res> res;
public:
- OnDemandSnapshotClosure(ReplicationState *replication_state, const std::shared_ptr<http_req> &req,
- const std::shared_ptr<http_res> &res) :
+ OnDemandSnapshotClosure(ReplicationState *replication_state, const std::shared_ptr<http_req>& req,
+ const std::shared_ptr<http_res>& res) :
replication_state(replication_state), req(req), res(res) {}
~OnDemandSnapshotClosure() {}