mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-02 04:56:58 +00:00
`mutation::consume()` is used by range scans to convert the immediate `reconcilable_result` to the final `query::result` format. When the range scan is in reverse, `mutation::consume()` has to feed the clustering fragments to the consumer in reverse order, but currently `mutation::consume()` always uses the natural order, breaking reverse range scans. This patch fixes this by adding a `consume_in_reverse` parameter to `mutation::consume()`, and consequently support for consuming clustering fragments in reverse order. Fixes: #8000 Tests: unit(release, debug), dtest(thrift_tests.py:TestMutations.test_get_range_slice) Signed-off-by: Botond Dénes <bdenes@scylladb.com> Message-Id: <20210203081659.622424-1-bdenes@scylladb.com>
11 KiB
11 KiB