mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-02 13:06:57 +00:00
When asked to upgrade a reader that itself is a downgrade, try to return the original v2 reader instead, and likewise when downgrading upgraded v1 readers. This is desirable because version transformations can result from, say, entering/leaving a reader concurrency semaphore, and the amount of such transformations is practically unbounded. Such short-circuiting is only done if it is safe, that is: the transforming reader's buffer is empty and its internal range tombstone tracking state is discardable. Signed-off-by: Michael Livshin <michael.livshin@scylladb.com>
78 KiB
78 KiB