|
|
|
@ -126,7 +126,7 @@ func (s *Store) Create(version raft.SnapshotVersion, index, term uint64, configu
|
|
|
|
|
return &LockingSink{sink, s}, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// List returns a list of all the snapshots in the Store. In pratice, this will at most be
|
|
|
|
|
// List returns a list of all the snapshots in the Store. In practice, this will at most be
|
|
|
|
|
// a list of 1, and that will be the newest snapshot available.
|
|
|
|
|
func (s *Store) List() ([]*raft.SnapshotMeta, error) {
|
|
|
|
|
snapshots, err := s.getSnapshots()
|
|
|
|
|