Skip to content

Commit af60136

Browse files
committed
No need to pre-load regions
1 parent 25c1bc1 commit af60136

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

modules/repository-s3/src/main/java/org/elasticsearch/repositories/s3/S3RepositoryPlugin.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ public class S3RepositoryPlugin extends Plugin implements RepositoryPlugin, Relo
5151
static {
5252
SpecialPermission.check();
5353
AccessController.doPrivileged((PrivilegedAction<Void>) () -> {
54-
// Pre-load region metadata to avoid looking them up dynamically without privileges enabled
55-
// noinspection ResultOfMethodCallIgnored
56-
Region.regions();
5754
try {
5855
// Eagerly load the RegionFromEndpointGuesser map from the resource file
5956
MethodHandles.lookup().ensureInitialized(RegionFromEndpointGuesser.class);

0 commit comments

Comments
 (0)