HBASE-8225 [replication] minor code bug when registering ReplicationLogCleaner (Jerry He)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1463283 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
sershe 2013-04-01 20:16:38 +00:00
parent 9779fb36df
commit 0bc9187d46
1 changed files with 3 additions and 3 deletions

View File

@ -239,9 +239,9 @@ public class Replication implements WALActionsListener,
return;
}
String plugins = conf.get(HBASE_MASTER_LOGCLEANER_PLUGINS);
if (!plugins.contains(ReplicationLogCleaner.class.toString())) {
conf.set(HBASE_MASTER_LOGCLEANER_PLUGINS,
plugins + "," + ReplicationLogCleaner.class.getCanonicalName());
String cleanerClass = ReplicationLogCleaner.class.getCanonicalName();
if (!plugins.contains(cleanerClass)) {
conf.set(HBASE_MASTER_LOGCLEANER_PLUGINS, plugins + "," + cleanerClass);
}
}