Skip to content

Commit

Permalink
fmt log.go to pass CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jmurret committed Mar 15, 2023
1 parent dd08310 commit ca621fc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions log.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ type LogStore interface {
}

// MonotonicLogStore is an optional interface for LogStore implementations that
// cannot tolerate gaps in between the Index values of consecutive log entries. For example,
// this may allow more efficient indexing because the Index values are densely populated. If true is
// returned, Raft will avoid relying on gaps to trigger re-synching logs on followers after a
// snapshot is restored. The LogStore must have an efficient implementation of
// DeleteLogs, as this called after every snapshot restore when gaps are not allowed.
// We avoid deleting all records for LogStores that do not implement MonotonicLogStore
// because this has a major negative performance impact on the BoltDB store that is currently
// cannot tolerate gaps in between the Index values of consecutive log entries. For example,
// this may allow more efficient indexing because the Index values are densely populated. If true is
// returned, Raft will avoid relying on gaps to trigger re-synching logs on followers after a
// snapshot is restored. The LogStore must have an efficient implementation of
// DeleteLogs, as this called after every snapshot restore when gaps are not allowed.
// We avoid deleting all records for LogStores that do not implement MonotonicLogStore
// because this has a major negative performance impact on the BoltDB store that is currently
// the most widely used.
type MonotonicLogStore interface {
IsMonotonic() bool
Expand Down

0 comments on commit ca621fc

Please sign in to comment.