Browse Source

add MinIndex method to Group

pull/1842/head
Anton Kaliaev 7 years ago
parent
commit
35e81018e9
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      autofile/group.go

+ 7
- 0
autofile/group.go View File

@ -146,6 +146,13 @@ func (g *Group) MaxIndex() int {
return g.maxIndex
}
// MinIndex returns index of the first file in the group.
func (g *Group) MinIndex() int {
g.mtx.Lock()
defer g.mtx.Unlock()
return g.minIndex
}
// Write writes the contents of p into the current head of the group. It
// returns the number of bytes written. If nn < len(p), it also returns an
// error explaining why the write is short.


Loading…
Cancel
Save