-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(mis-server): 创建账户并判断为不封锁账户时,集群下没有实现对帐户的解封 (#1295)
### 问题 当前scow及集群中创建账户的逻辑为 1. 在scow中创建账户,且通过判断当前租户封锁阈值在数据库中写入集群中应为的封锁状态 2. 在当前可用集群中创建账户,并写入账户与账户拥有者的关联 3. 在当前可用集群中根据1中计算的封锁状态值实现在集群中的封锁或解封 4. 2或3失败时对1中创建的数据进行回滚 当前只实现了3中的封锁并没有单独执行解封导致题目的问题 ### 修复 补充上述3中,根据封锁阈值判断应为解封的情况,调用适配器接口在集群中实现对帐户的解封 租户默认封锁阈值为0时,应为在集群中封锁状态 ![image](https://github.com/PKUHPC/SCOW/assets/43978285/78a02f03-fe81-46d8-9dff-488d50b41915) ![image](https://github.com/PKUHPC/SCOW/assets/43978285/0552a0fe-0260-45e7-a431-3fd8c903d476) 修改租户默认封锁阈值为负数时,应为在集群中解封状态 ![image](https://github.com/PKUHPC/SCOW/assets/43978285/247f0f4c-cfc1-490c-800a-304c053ed610) ![image](https://github.com/PKUHPC/SCOW/assets/43978285/b0792768-dff8-4585-b742-b16bb9d63f11) ![image](https://github.com/PKUHPC/SCOW/assets/43978285/f3c314bf-0317-42de-af98-af87d1351cd5)
- Loading branch information
Showing
3 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@scow/mis-server": patch | ||
--- | ||
|
||
修复创建账户且判断为需要解封时未在集群中执行解封操作的问题 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters