mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-19 17:37:43 +00:00
fix query behaviour when limit is present (reported by @Mazin)
This commit is contained in:
@ -103,3 +103,9 @@ uint64_t getDBVersion(lmdb::txn &txn) {
|
||||
|
||||
return dbVersion;
|
||||
}
|
||||
|
||||
|
||||
std::string padBytes(std::string_view str, size_t n, char padChar) {
|
||||
if (str.size() > n) throw herr("unable to pad, string longer than expected");
|
||||
return std::string(str) + std::string(n - str.size(), padChar);
|
||||
}
|
||||
|
Reference in New Issue
Block a user