From 5d8d506fe843b2f4afc4ed416b1f46693c48ef8e Mon Sep 17 00:00:00 2001 From: fjy Date: Thu, 3 Apr 2014 17:06:28 -0700 Subject: [PATCH] fix commented out filters --- services/src/main/java/io/druid/cli/CliCoordinator.java | 4 ++-- .../java/io/druid/cli/CoordinatorJettyServerInitializer.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/src/main/java/io/druid/cli/CliCoordinator.java b/services/src/main/java/io/druid/cli/CliCoordinator.java index 0089016c8d9..2b2b17ec0fd 100644 --- a/services/src/main/java/io/druid/cli/CliCoordinator.java +++ b/services/src/main/java/io/druid/cli/CliCoordinator.java @@ -91,8 +91,8 @@ public class CliCoordinator extends ServerRunnable JsonConfigProvider.bind(binder, "druid.manager.segments", DatabaseSegmentManagerConfig.class); JsonConfigProvider.bind(binder, "druid.manager.rules", DatabaseRuleManagerConfig.class); - //binder.bind(RedirectFilter.class).in(LazySingleton.class); - //binder.bind(RedirectInfo.class).to(CoordinatorRedirectInfo.class).in(LazySingleton.class); + binder.bind(RedirectFilter.class).in(LazySingleton.class); + binder.bind(RedirectInfo.class).to(CoordinatorRedirectInfo.class).in(LazySingleton.class); binder.bind(DatabaseSegmentManager.class) .toProvider(DatabaseSegmentManagerProvider.class) diff --git a/services/src/main/java/io/druid/cli/CoordinatorJettyServerInitializer.java b/services/src/main/java/io/druid/cli/CoordinatorJettyServerInitializer.java index e2f6d5b9c88..5f1ad32edd7 100644 --- a/services/src/main/java/io/druid/cli/CoordinatorJettyServerInitializer.java +++ b/services/src/main/java/io/druid/cli/CoordinatorJettyServerInitializer.java @@ -46,7 +46,7 @@ class CoordinatorJettyServerInitializer implements JettyServerInitializer root.addServlet(holderPwd, "/"); root.setResourceBase(DruidCoordinator.class.getClassLoader().getResource("static").toExternalForm()); - //root.addFilter(new FilterHolder(injector.getInstance(RedirectFilter.class)), "/*", null); + root.addFilter(new FilterHolder(injector.getInstance(RedirectFilter.class)), "/*", null); root.addFilter(GzipFilter.class, "/*", null); // Can't use '/*' here because of Guice and Jetty static content conflicts