This is an automated email from the ASF dual-hosted git repository.
mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git
The following commit(s) were added to refs/heads/master by this push:
new 5405ee9 Fix performance issue to avoid unnessary loop. (#3030)
5405ee9 is described below
commit 5405ee98e1d7e7c155fad55f634c20ed424d1e2e
Author: Qiang Zhao <[email protected]>
AuthorDate: Thu Feb 10 03:24:21 2022 +0800
Fix performance issue to avoid unnessary loop. (#3030)
---
.../src/main/java/org/apache/bookkeeper/tls/BookieAuthZFactory.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/tls/BookieAuthZFactory.java
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/tls/BookieAuthZFactory.java
index c047977..be55ca1 100644
---
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/tls/BookieAuthZFactory.java
+++
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/tls/BookieAuthZFactory.java
@@ -95,6 +95,7 @@ public class BookieAuthZFactory implements
BookieAuthProvider.Factory {
for (String allowedRole : allowedRoles) {
if (certRole[0].equals(allowedRole)) {
authorized = true;
+ break;
}
}
if (authorized) {