mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
Merge pull request #1814 from jaffee/disable-syncer-if-replicaN-1
disable anti-entropy if not using replication [performance]
This commit is contained in:
commit
1726e24aa7
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