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:
parent
9779fb36df
commit
0bc9187d46
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue