mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 02:15:45 +02:00
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:
parent
6d87acfc43
commit
9e23f85e6b
11 changed files with 114 additions and 36 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue