scoutfs: set default slot to -1 to identify non-quorum nodes

This commit is contained in:
Kelly Kunzelmann
2023-10-25 20:29:32 -07:00
parent 0bb26b6971
commit 129a591df7

View File

@@ -693,7 +693,7 @@ func GetQuorumInfo(path string) (QuorumInfo, error) {
}
defer sfs.Close()
qi := QuorumInfo{}
qi := QuorumInfo{Slot: -1}
scanner := bufio.NewScanner(sfs)
for scanner.Scan() {
fields := strings.Fields(scanner.Text())