Fix wrong comparison in read ahead functions.
Merge branch 'next' of github.com:rethinkdb/rethinkdb into next