From 50c5c43d2942828f69c8ebdf5a3cac5e79a5991f Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 20 Aug 2022 10:55:20 -0700 Subject: [PATCH] ircd::m::room::type: Fix ascending order seek correctness; for now. --- matrix/room_type.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/matrix/room_type.cc b/matrix/room_type.cc index f1c0f858f..0d7643e97 100644 --- a/matrix/room_type.cc +++ b/matrix/room_type.cc @@ -88,6 +88,11 @@ const if(!desc && int64_t(depth) >= range.second) break; + //XXX this column's comparator can cause a seek to be off by one in + // the wrong direction when ascending. + if(!desc && depth < range.first) + continue; + if(this->_type && !prefixing && this->_type != _type) break;