FirstIndex returns the first index. It is typically SnapshotIndex+1.
()
| 250 | |
| 251 | // FirstIndex returns the first index. It is typically SnapshotIndex+1. |
| 252 | func (w *DiskStorage) FirstIndex() (uint64, error) { |
| 253 | w.lock.Lock() |
| 254 | defer w.lock.Unlock() |
| 255 | |
| 256 | return w.firstIndex(), nil |
| 257 | } |
| 258 | |
| 259 | // Snapshot returns the most recent snapshot. If snapshot is temporarily |
| 260 | // unavailable, it should return ErrSnapshotTemporarilyUnavailable, so raft |