Skip to content

Commit

Permalink
delete BookieAffinityGroup policy when not present
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangpengcheng committed Nov 22, 2024
1 parent fd9405f commit 9318064
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/admin/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,11 @@ func (p *PulsarAdminClient) applyNamespacePolicies(completeNSName string, params
if err != nil {
return err
}
} else {
err = p.adminClient.Namespaces().DeleteBookieAffinityGroup(completeNSName)
if err != nil {
return err
}
}

return nil
Expand Down

0 comments on commit 9318064

Please sign in to comment.