mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
chore: remove DbSlice mutex and add ConditionFlag in SliceSnapshot (#4073)
* remove DbSlice mutex * add ConditionFlag in SliceSnapshot * disable compression when big value serialization is on * add metrics --------- Signed-off-by: kostas <kostas@dragonflydb.io>
This commit is contained in:
parent
7ccad66fb1
commit
267d5ab370
20 changed files with 185 additions and 119 deletions
|
@ -27,7 +27,7 @@ ServerState::Stats::Stats(unsigned num_shards) : tx_width_freq_arr(num_shards) {
|
|||
}
|
||||
|
||||
ServerState::Stats& ServerState::Stats::Add(const ServerState::Stats& other) {
|
||||
static_assert(sizeof(Stats) == 17 * 8, "Stats size mismatch");
|
||||
static_assert(sizeof(Stats) == 18 * 8, "Stats size mismatch");
|
||||
|
||||
#define ADD(x) this->x += (other.x)
|
||||
|
||||
|
@ -49,6 +49,9 @@ ServerState::Stats& ServerState::Stats::Add(const ServerState::Stats& other) {
|
|||
ADD(blocked_on_interpreter);
|
||||
ADD(rdb_save_usec);
|
||||
ADD(rdb_save_count);
|
||||
|
||||
ADD(big_value_preemptions);
|
||||
|
||||
ADD(oom_error_cmd_cnt);
|
||||
|
||||
if (this->tx_width_freq_arr.size() > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue