2
0
mirror of synced 2025-02-23 14:18:13 +00:00

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

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) {