Reader.SetReadahead can change readahead pieces
This commit is contained in:
parent
0e221dbdcd
commit
559afcd0a9
@ -52,7 +52,7 @@ func (r *Reader) SetReadahead(readahead int64) {
|
|||||||
r.mu.Unlock()
|
r.mu.Unlock()
|
||||||
r.t.cl.mu.Lock()
|
r.t.cl.mu.Lock()
|
||||||
defer r.t.cl.mu.Unlock()
|
defer r.t.cl.mu.Unlock()
|
||||||
r.tickleClient()
|
r.posChanged()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *Reader) readable(off int64) (ret bool) {
|
func (r *Reader) readable(off int64) (ret bool) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user