mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
enhance: Use RLock for ListPrivilegeGroups (#43998)
Related to #43901 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
ec6681b018
commit
847b79e197
@ -1673,8 +1673,8 @@ func (mt *MetaTable) DropPrivilegeGroup(ctx context.Context, groupName string) e
|
||||
}
|
||||
|
||||
func (mt *MetaTable) ListPrivilegeGroups(ctx context.Context) ([]*milvuspb.PrivilegeGroupInfo, error) {
|
||||
mt.permissionLock.Lock()
|
||||
defer mt.permissionLock.Unlock()
|
||||
mt.permissionLock.RLock()
|
||||
defer mt.permissionLock.RUnlock()
|
||||
|
||||
return mt.catalog.ListPrivilegeGroups(ctx)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user