Reader.SetReadahead can change readahead pieces

This commit is contained in:
Matt Joiner 2016-10-24 19:35:12 +11:00
parent 0e221dbdcd
commit 559afcd0a9
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ func (r *Reader) SetReadahead(readahead int64) {
r.mu.Unlock()
r.t.cl.mu.Lock()
defer r.t.cl.mu.Unlock()
r.tickleClient()
r.posChanged()
}
func (r *Reader) readable(off int64) (ret bool) {