1
0
Fork 0

Merge pull request #1448 from rqlite/otoolep-indices-sort

No need to cast indices
master
Philip O'Toole 10 months ago committed by GitHub
commit fc7d0297b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,8 +20,8 @@ type cFrame struct {
type cFrames []*cFrame
func (c cFrames) Len() int { return len(c) }
func (c cFrames) Less(i, j int) bool { return c[uint32(i)].Offset < c[uint32(j)].Offset }
func (c cFrames) Swap(i, j int) { c[uint32(i)], c[uint32(j)] = c[uint32(j)], c[uint32(i)] }
func (c cFrames) Less(i, j int) bool { return c[i].Offset < c[j].Offset }
func (c cFrames) Swap(i, j int) { c[i], c[j] = c[j], c[i] }
// CompactingScanner implements WALIterator to iterate over frames in a WAL file.
// It also compacts the WAL file, with Next() returning the last valid frame for each

Loading…
Cancel
Save