mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 11:47:23 +08:00
skip checking master peers if not starting master
This commit is contained in:
@@ -156,9 +156,11 @@ func runServer(cmd *Command, args []string) bool {
|
|||||||
*isStartingFiler = true
|
*isStartingFiler = true
|
||||||
}
|
}
|
||||||
|
|
||||||
_, peerList := checkPeers(*serverIp, *masterOptions.port, *masterOptions.peers)
|
if *isStartingMasterServer {
|
||||||
peers := strings.Join(peerList, ",")
|
_, peerList := checkPeers(*serverIp, *masterOptions.port, *masterOptions.peers)
|
||||||
masterOptions.peers = &peers
|
peers := strings.Join(peerList, ",")
|
||||||
|
masterOptions.peers = &peers
|
||||||
|
}
|
||||||
|
|
||||||
// ip address
|
// ip address
|
||||||
masterOptions.ip = serverIp
|
masterOptions.ip = serverIp
|
||||||
|
Reference in New Issue
Block a user