mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
fix: compatibility around list,string and sort commands (#3568)
1. Fix corner cases around non existing keys 2. Fix matching logic for * glob, as well as '' glob. 3. Improve SORT option parsing. Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
067fdd83b9
commit
20b8817148
6 changed files with 43 additions and 11 deletions
|
@ -295,7 +295,7 @@ class Context : protected Cancellation {
|
|||
};
|
||||
|
||||
struct ScanOpts {
|
||||
std::string_view pattern;
|
||||
std::optional<std::string_view> pattern;
|
||||
size_t limit = 10;
|
||||
std::optional<CompactObjType> type_filter;
|
||||
unsigned bucket_id = UINT_MAX;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue