func (s *RaftServer) OpenRepo(dirpath string, pageSize int, segmentSize int64) {
	newRepo, err := store.OpenRepo(dirpath, pageSize, segmentSize)
	if err != nil {
		panic(err)
	}
	s.stableInfo = newRepo.State
}
// OpenRepo opens a wal file and read logs/states from it, set to memory
OpenRepo opens a wal file and read logs/states from it, set to memory
// OpenRepo opens a wal file and read logs / states from it set to memory
func (s *RaftServer) OpenRepo(dirpath string, pageSize int, segmentSize int64) {
	newRepo, err := store.OpenRepo(dirpath, pageSize, segmentSize)
	if err != nil {
		panic(err)
	}
	s.stableInfo = newRepo.State
}
func ( s * RaftServer ) OpenRepo ( dirpath string , pageSize int , segmentSize int64 ) { newRepo , err := store . OpenRepo ( dirpath , pageSize , segmentSize ) if err != nil { panic ( err ) } s . stableInfo = newRepo . State }
OpenRepo opens a wal file and read logs/states from it, set to memory
OpenRepo opens a wal file and read logs / states from it set to memory