Skip to content

Commit 91542eb

Browse files
committed
[PBM-1193] pbm-agent fails with panic when connection to mongod is lost (#896)
1 parent 3a1fea5 commit 91542eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/agent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,8 +549,8 @@ func (a *Agent) HbStatus() {
549549
} else {
550550
hb.Hidden = inf.Hidden
551551
hb.Passive = inf.Passive
552+
hb.Arbiter = inf.ArbiterOnly
552553
}
553-
hb.Arbiter = inf.ArbiterOnly
554554

555555
err = a.pbm.SetAgentStatus(hb)
556556
if err != nil {

0 commit comments

Comments
 (0)