diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index 8241ca2..f0184a6 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -308,6 +308,13 @@ function _M.createRpc(agent, data) SendPacket(actionCodes.Role_createRpc, MsgPack.pack(response)) return true end + local stopcreate = tonumber(redisproxy:hget("autoincrement_set", "stopcreate")) + if stopcreate and stopcreate > 0 then + response.result = "STOP_CREATE" + SendPacket(actionCodes.Role_createRpc, MsgPack.pack(response)) + return true + end + local roleId = getNextRoleId() if not roleId then -- libgit2 0.21.2