diff --git a/redis/redis-console/src/main/java/com/ctrip/xpipe/redis/console/spring/ConsoleCheckerContextConfig.java b/redis/redis-console/src/main/java/com/ctrip/xpipe/redis/console/spring/ConsoleCheckerContextConfig.java index cb38ad571..20e2a6da1 100644 --- a/redis/redis-console/src/main/java/com/ctrip/xpipe/redis/console/spring/ConsoleCheckerContextConfig.java +++ b/redis/redis-console/src/main/java/com/ctrip/xpipe/redis/console/spring/ConsoleCheckerContextConfig.java @@ -18,12 +18,13 @@ import com.ctrip.xpipe.redis.console.dao.ConfigDao; import com.ctrip.xpipe.redis.console.dao.RedisDao; import com.ctrip.xpipe.redis.console.healthcheck.meta.DcIgnoredConfigChangeListener; +import com.ctrip.xpipe.redis.console.resources.CheckerCurrentDcAllMeta; import com.ctrip.xpipe.redis.console.resources.DefaultPersistenceCache; -import com.ctrip.xpipe.redis.console.service.ClusterService; import com.ctrip.xpipe.redis.console.service.DcClusterShardService; import com.ctrip.xpipe.redis.console.service.RedisInfoService; import com.ctrip.xpipe.redis.console.service.impl.AlertEventService; import com.ctrip.xpipe.redis.console.service.impl.DefaultRedisInfoService; +import com.ctrip.xpipe.redis.core.meta.CurrentDcAllMeta; import com.ctrip.xpipe.redis.core.meta.MetaCache; import com.ctrip.xpipe.spring.AbstractProfile; import org.springframework.beans.factory.annotation.Qualifier; @@ -88,6 +89,11 @@ public AllCheckerLeaderElector allCheckerLeaderElector(FoundationService foundat return new AllCheckerLeaderElector(foundationService.getDataCenter()); } + @Bean + public CurrentDcAllMeta currentDcAllMeta() { + return new CheckerCurrentDcAllMeta(); + } + @Bean @Profile(AbstractProfile.PROFILE_NAME_PRODUCTION) public GroupCheckerLeaderElector checkerLeaderElector(FoundationService foundationService) {