diff --git a/internal/rootcoord/meta_table.go b/internal/rootcoord/meta_table.go index caf2ad3c9a..2be89d5c94 100644 --- a/internal/rootcoord/meta_table.go +++ b/internal/rootcoord/meta_table.go @@ -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) }