mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
feat(search): Plug in polymorphic allocator (#1819)
* feat(search): Plug in polymorphic allocator --------- Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
This commit is contained in:
parent
e98d5e60c8
commit
f3c07174aa
22 changed files with 236 additions and 61 deletions
|
@ -136,6 +136,14 @@ struct TieredStats {
|
|||
TieredStats& operator+=(const TieredStats&);
|
||||
};
|
||||
|
||||
struct SearchStats {
|
||||
size_t used_memory = 0;
|
||||
size_t num_indices = 0;
|
||||
size_t num_entries = 0;
|
||||
|
||||
SearchStats& operator+=(const SearchStats&);
|
||||
};
|
||||
|
||||
enum class GlobalState : uint8_t {
|
||||
ACTIVE,
|
||||
LOADING,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue