fix: delete empty dense sets in HGetGeneric (#3543)

* remove DelEmptyPrimeValue
* delete empty dense set in HGetGeneric
* const qualify FindReadOnly

---------

Signed-off-by: kostas <kostas@dragonflydb.io>
This commit is contained in:
Kostas Kyrimis 2024-08-26 11:33:57 +03:00 committed by GitHub
parent b7eccad5bd
commit 9c3d69e0ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 30 additions and 42 deletions

View file

@ -292,9 +292,9 @@ class DbSlice {
ExpConstIterator exp_it;
};
ItAndExpConst FindReadOnly(const Context& cntx, std::string_view key);
ItAndExpConst FindReadOnly(const Context& cntx, std::string_view key) const;
OpResult<ConstIterator> FindReadOnly(const Context& cntx, std::string_view key,
unsigned req_obj_type);
unsigned req_obj_type) const;
struct AddOrFindResult {
Iterator it;
@ -557,7 +557,7 @@ class DbSlice {
OpResult<PrimeItAndExp> FindInternal(const Context& cntx, std::string_view key,
std::optional<unsigned> req_obj_type,
UpdateStatsMode stats_mode);
UpdateStatsMode stats_mode) const;
OpResult<ItAndUpdater> FindMutableInternal(const Context& cntx, std::string_view key,
std::optional<unsigned> req_obj_type);