mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-31 12:06:44 +00:00
Since size estimates are stored as wrapped ranges, we call compat::wrap() to convert from the now-standard unwrapped ranges back to wrapped ranges. However, compat::wrap() relies on the ranges being in sorted order, but our input is not. This leads to a crash as we find an unexpected empty token in the middle of the vector. Sort it so compat::wrap() works as expected. Fixes #1804. Message-Id: <1478161908-25051-1-git-send-email-avi@scylladb.com>