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:
Vladislav 2023-10-05 18:09:11 +03:00 committed by GitHub
parent e98d5e60c8
commit f3c07174aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 236 additions and 61 deletions

View file

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