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;
|
return;
|
||||||
}
|
}
|
||||||
String plugins = conf.get(HBASE_MASTER_LOGCLEANER_PLUGINS);
|
String plugins = conf.get(HBASE_MASTER_LOGCLEANER_PLUGINS);
|
||||||
if (!plugins.contains(ReplicationLogCleaner.class.toString())) {
|
String cleanerClass = ReplicationLogCleaner.class.getCanonicalName();
|
||||||
conf.set(HBASE_MASTER_LOGCLEANER_PLUGINS,
|
if (!plugins.contains(cleanerClass)) {
|
||||||
plugins + "," + ReplicationLogCleaner.class.getCanonicalName());
|
conf.set(HBASE_MASTER_LOGCLEANER_PLUGINS, plugins + "," + cleanerClass);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue