mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
chore: remove atomic<> from ReplicaInfo::state (#2409)
* chore: remove atomic<> from ReplicaInfo::state This field is protected by ReplicaInfo::mu so non-protected access to it shows a design problem. Indeed, it was done for being able to access this field without a mutex inside ReplicationLags() function. I moved the access to this field to GetReplicasRoleInfo where we need to lock ReplicaRoleInfo anyways. Also, done some cleanups in the file. Finally, raised a threshold for "tx queue too long" warnings. --------- Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
484b4de216
commit
7054fc56b1
3 changed files with 42 additions and 89 deletions
|
@ -14,7 +14,7 @@
|
|||
#include "server/journal/journal.h"
|
||||
#include "server/server_state.h"
|
||||
|
||||
ABSL_FLAG(uint32_t, tx_queue_warning_len, 40,
|
||||
ABSL_FLAG(uint32_t, tx_queue_warning_len, 96,
|
||||
"Length threshold for warning about long transaction queue");
|
||||
|
||||
namespace dfly {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue