mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 01:29:26 +08:00
Update webstats_common.lua
This commit is contained in:
@@ -961,10 +961,16 @@ function _M.D(self,msg)
|
||||
end
|
||||
|
||||
function _M.is_migrating(self, input_sn)
|
||||
local file = io.open(self.app_dir.."/migrating", "rb")
|
||||
if file then return true end
|
||||
local file = io.open(self.app_dir.."/logs/"..input_sn.."/migrating", "rb")
|
||||
if file then return true end
|
||||
local fp = io.open(self.app_dir.."/migrating", "rb")
|
||||
if fp then
|
||||
fp:close()
|
||||
return true
|
||||
end
|
||||
local fp = io.open(self.app_dir.."/logs/"..input_sn.."/migrating", "rb")
|
||||
if fp then
|
||||
fp:close()
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user