From ae710c2a5d10cb0c0556f6dc7814312185debb66 Mon Sep 17 00:00:00 2001 From: sunty <1172534965@qq.com> Date: 星期一, 13 四月 2020 10:26:11 +0800 Subject: [PATCH] perfect asVolume --- controllers/swfsControllers.go | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/controllers/swfsControllers.go b/controllers/swfsControllers.go index e09612a..3e770e3 100644 --- a/controllers/swfsControllers.go +++ b/controllers/swfsControllers.go @@ -101,10 +101,7 @@ //璇锋眰浣滀负涓昏妭鐐规搷浣滄祦绋� func RequestMasterNodesOperation(nowPeers []interface{}) { - //fmt.Println("config.Server.CoreBaseUnit", config.Server.CoreBaseUnit) coreBaseUnit, _ := strconv.Atoi(config.Server.CoreBaseUnit) - //fmt.Println("nowPeers: ", nowPeers) - //fmt.Println("coreBaseUnit: ", coreBaseUnit) UpdateAllNodesScriptArgument(nowPeers) RestartAllServer(nowPeers, coreBaseUnit) } @@ -174,7 +171,9 @@ //浣滀负鏁版嵁鑺傜偣鍔犲叆 func AsVolume() { + UpdatePeers(config.Server.ScriptPath, StartServerScript, GetNewPeers(), GetNewPeers()) ReplaceLineContentBySearch(StartScriptAsVolume, config.Server.ScriptPath, StartServerScript) + ReplaceLineContentBySearch("peers=", config.Server.ScriptPath, StartServerScript) StartServer(config.Server.ScriptPath) } -- Gitblit v1.8.0