chore: expose SBF via compact_object (#2797)

* chore: expose SBF via compact_object
---------

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
Roman Gershman 2024-03-30 22:35:22 +03:00 committed by GitHub
parent 6d87acfc43
commit 9e23f85e6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 114 additions and 36 deletions

View file

@ -218,8 +218,8 @@ unsigned PrimeEvictionPolicy::Evict(const PrimeTable::HotspotBuckets& eb, PrimeT
#define ADD(x) (x) += o.x
DbStats& DbStats::operator+=(const DbStats& o) {
constexpr size_t kDbSz = sizeof(DbStats);
static_assert(kDbSz == 208);
constexpr size_t kDbSz = sizeof(DbStats) - sizeof(DbTableStats);
static_assert(kDbSz == 32);
DbTableStats::operator+=(o);