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:
Roman Gershman 2024-08-25 16:30:55 +03:00 committed by GitHub
parent 067fdd83b9
commit 20b8817148
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 43 additions and 11 deletions

View file

@ -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;