Support non-electing peers via --observer
This commit is contained in:
1 parent
29674b7780
commit
b84ef98de8
5 files changed
+137
-52
No files matched your search
+4
-2
@@ -36,8 +36,10 @@ func NewStatus(allocator *Allocator, defaultSubnet address.CIDR) *Status {
|
||||
}
|
||||
|
||||
var paxosStatus *paxos.Status
|
||||
if allocator.paxosActive {
|
||||
paxosStatus = paxos.NewStatus(allocator.paxos)
|
||||
if allocator.awaitingConsensus && allocator.paxos != nil {
|
||||
if node, ok := allocator.paxos.(*paxos.Node); ok {
|
||||
paxosStatus = paxos.NewStatus(node)
|
||||
}
|
||||
}
|
||||
|
||||
resultChan := make(chan *Status)
|
||||
|
||||
Reference in new issue
Block a user