From 21e54d8060e3afe2c5c2456077419f74272f1ff7 Mon Sep 17 00:00:00 2001 From: fjy Date: Thu, 27 Mar 2014 15:48:37 -0700 Subject: [PATCH] rename var to be less confusing --- server/src/main/java/io/druid/db/DatabaseRuleManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/main/java/io/druid/db/DatabaseRuleManager.java b/server/src/main/java/io/druid/db/DatabaseRuleManager.java index 54045782f46..682e6fc8d8c 100644 --- a/server/src/main/java/io/druid/db/DatabaseRuleManager.java +++ b/server/src/main/java/io/druid/db/DatabaseRuleManager.java @@ -63,7 +63,7 @@ public class DatabaseRuleManager public static void createDefaultRule( final IDBI dbi, final String ruleTable, - final String defaultTier, + final String defaultDatasourceName, final ObjectMapper jsonMapper ) { @@ -81,7 +81,7 @@ public class DatabaseRuleManager ruleTable ) ) - .bind("dataSource", defaultTier) + .bind("dataSource", defaultDatasourceName) .list(); if (!existing.isEmpty()) { @@ -103,8 +103,8 @@ public class DatabaseRuleManager ruleTable ) ) - .bind("id", String.format("%s_%s", defaultTier, version)) - .bind("dataSource", defaultTier) + .bind("id", String.format("%s_%s", defaultDatasourceName, version)) + .bind("dataSource", defaultDatasourceName) .bind("version", version) .bind("payload", jsonMapper.writeValueAsString(defaultRules)) .execute();