]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Reader.SetReadahead can change readahead pieces
authorMatt Joiner <anacrolix@gmail.com>
Mon, 24 Oct 2016 08:35:12 +0000 (19:35 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 24 Oct 2016 08:35:12 +0000 (19:35 +1100)
reader.go

index 8dc9eefcbea4152747b3b643d89491ed2d899807..3f22c6c656548c0804a2953b7bad8141d7de65ea 100644 (file)
--- a/reader.go
+++ b/reader.go
@@ -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) {