Improve GlassTable::readahead_key for overlong keys
commitca043a9664061196adfb5b9bf8ab2e39bc05f8d9
authorOlly Betts <olly@survex.com>
Fri, 16 Sep 2022 02:54:36 +0000 (16 14:54 +1200)
committerOlly Betts <olly@survex.com>
Fri, 16 Sep 2022 03:00:52 +0000 (16 15:00 +1200)
tree3f3d3723ce8dcb407c7005d0f3e6b7a8c7286df0
parent5aac4d59e631731b8a49321eb772ec3d738b8299
Improve GlassTable::readahead_key for overlong keys

Return true instead of false in this case if the only problem is
that the key was too long - returning false means that readahead not
only failed for this key but will fail for other keys too, so the
previous change was preventing readahead from working when a query
contained an overlong key.

Improves https://github.com/xapian/xapian/pull/313

(cherry picked from commit a1f5cfd2394730e832b1bcb81c41e4f553d07736)
xapian-core/backends/chert/chert_table.cc
xapian-core/backends/glass/glass_table.cc