mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
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:
parent
b7eccad5bd
commit
9c3d69e0ec
7 changed files with 30 additions and 42 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue