]> git.sesse.net Git - plocate/commit
Fix searching for very short (1 or 2 bytes) queries.
authorSteinar H. Gunderson <steinar+git@gunderson.no>
Sat, 3 Oct 2020 08:49:10 +0000 (10:49 +0200)
committerSteinar H. Gunderson <steinar+git@gunderson.no>
Sat, 3 Oct 2020 08:49:10 +0000 (10:49 +0200)
commitd5f6c3c0a4419f48ac62beca86e28c9e6aea2412
tree20958e6c8202f8918fd37c9a9fe65b9c9f11eac0
parenta0ada2b9d3322efce360068a02bb4a0463cd3ea6
Fix searching for very short (1 or 2 bytes) queries.

plocate had assumptions about the layout of the file, that no longer
held. Use the pad field to simplify things.

This requires a database rebuild, but only for short queries.
Normal queries will continue to work, so there's no version bump.
db.h
plocate-build.cpp
plocate.cpp