[PATCH] vinyl: fix read iterator skips source after reading cache

Konstantin Osipov kostja at tarantool.org
Wed Jun 27 19:02:51 MSK 2018


* Vladimir Davydov <vdavydov.dev at gmail.com> [18/06/23 08:30]:
> If a source is used on a read iteration (i.e. the key at which it is
> positioned is the next best match or, in terms of the read iterator
> implementation, its front_id matches the read iterator front_id), its
> history is cleaned up, see vy_read_iterator_apply_history(). This breaks
> the logic behind vy_read_src_is_behind(), which assumes that the history
> always points to the last used key. As a result, a source may be
> mistakenly skipped, as illustrated below:

Pushed.


-- 
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
http://tarantool.io - www.twitter.com/kostja_osipov



More information about the Tarantool-patches mailing list