Initialize Paxos quorum to 0 until this node needs to request consensus.
With a 0 quorum we will participate in voting, but will not actively try to form a ring.
This commit is contained in:
1 parent
16e5032528
commit
ecf1887e5b
2 files changed
+4
-1
No files matched your search
+1
-1
@@ -86,7 +86,7 @@ func NewAllocator(config Config) *Allocator {
|
||||
if config.IsObserver {
|
||||
participant = paxos.NewObserver()
|
||||
} else {
|
||||
participant = paxos.NewNode(config.OurName, config.OurUID, 1)
|
||||
participant = paxos.NewNode(config.OurName, config.OurUID, 0)
|
||||
}
|
||||
return &Allocator{
|
||||
ourName: config.OurName,
|
||||
|
||||
Reference in new issue
Block a user