hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject svn commit: r1463299 - /hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/Replication.java
Date Mon, 01 Apr 2013 20:48:48 GMT
Author: sershe
Date: Mon Apr  1 20:48:48 2013
New Revision: 1463299

URL: http://svn.apache.org/r1463299
Log:
HBASE-8225 [replication] minor code bug when registering ReplicationLogCleaner (Jerry He)

Modified:
    hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/Replication.java

Modified: hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/Replication.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/Replication.java?rev=1463299&r1=1463298&r2=1463299&view=diff
==============================================================================
--- hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/Replication.java
(original)
+++ hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/Replication.java
Mon Apr  1 20:48:48 2013
@@ -239,9 +239,9 @@ public class Replication implements WALA
       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);
     }
   }
 



Mime
View raw message