This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new d52adddc25 Trivial optimisation. Also fixes highly theoretical
concurrency issue.
d52adddc25 is described below
commit d52adddc258f8d999127bf8200a1186ab760d661
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Sep 17 07:37:08 2025 +0100
Trivial optimisation. Also fixes highly theoretical concurrency issue.
---
java/org/apache/catalina/realm/UserDatabaseRealm.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/realm/UserDatabaseRealm.java
b/java/org/apache/catalina/realm/UserDatabaseRealm.java
index 1b96bd87a8..6d3e1db664 100644
--- a/java/org/apache/catalina/realm/UserDatabaseRealm.java
+++ b/java/org/apache/catalina/realm/UserDatabaseRealm.java
@@ -220,7 +220,7 @@ public class UserDatabaseRealm extends RealmBase {
containerLog.error(sm.getString("userDatabaseRealm.noNamingContext"));
return null;
}
- context = getServer().getGlobalNamingContext();
+ context = server.getGlobalNamingContext();
}
database = (UserDatabase) context.lookup(resourceName);
} catch (Throwable t) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]