mirror of https://github.com/hashicorp/consul
Switch Raft from SQLite to MDB
parent
e827a2ca27
commit
4abc881adc
|
@ -47,7 +47,7 @@ type Server struct {
|
||||||
raft *raft.Raft
|
raft *raft.Raft
|
||||||
raftLayer *RaftLayer
|
raftLayer *RaftLayer
|
||||||
raftPeers raft.PeerStore
|
raftPeers raft.PeerStore
|
||||||
raftStore *raft.SQLiteStore
|
raftStore *raft.MDBStore
|
||||||
raftTransport *raft.NetworkTransport
|
raftTransport *raft.NetworkTransport
|
||||||
|
|
||||||
// remoteConsuls is used to track the known consuls in
|
// remoteConsuls is used to track the known consuls in
|
||||||
|
@ -179,8 +179,8 @@ func (s *Server) setupRaft() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create the SQLite store for logs and stable storage
|
// Create the MDB store for logs and stable storage
|
||||||
store, err := raft.NewSQLiteStore(path)
|
store, err := raft.NewMDBStore(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue