mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
disable anti-entropy if not using replication (there will never be anything to sync)
This commit is contained in:
parent
8c4b1548bc
commit
af26473f77
1 changed files with 1 additions and 1 deletions
|
|
@ -428,7 +428,7 @@ func (s *Server) SyncData() error {
|
|||
}
|
||||
|
||||
func (s *Server) monitorAntiEntropy() {
|
||||
if s.antiEntropyInterval == 0 {
|
||||
if s.antiEntropyInterval == 0 || s.cluster.ReplicaN <= 1 {
|
||||
return // anti entropy disabled
|
||||
}
|
||||
s.cluster.initializeAntiEntropy()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue