hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r632621 - in /hadoop/hbase/branches/0.1: CHANGES.txt src/java/org/apache/hadoop/hbase/HConnectionManager.java
Date Sat, 01 Mar 2008 16:44:16 GMT
Author: stack
Date: Sat Mar  1 08:44:15 2008
New Revision: 632621

URL: http://svn.apache.org/viewvc?rev=632621&view=rev
Log:
HBASE-281 Shell should allow deletions in .META. and -ROOT- tables

Modified:
    hadoop/hbase/branches/0.1/CHANGES.txt
    hadoop/hbase/branches/0.1/src/java/org/apache/hadoop/hbase/HConnectionManager.java

Modified: hadoop/hbase/branches/0.1/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.1/CHANGES.txt?rev=632621&r1=632620&r2=632621&view=diff
==============================================================================
--- hadoop/hbase/branches/0.1/CHANGES.txt (original)
+++ hadoop/hbase/branches/0.1/CHANGES.txt Sat Mar  1 08:44:15 2008
@@ -33,6 +33,7 @@
    HADOOP-2555 Refactor the HTable#get and HTable#getRow methods to avoid
                repetition of retry-on-failure logic (thanks to Peter Dolan and
                Bryan Duxbury)
+   HBASE-281   Shell should allow deletions in .META. and -ROOT- tables
 
 Release 0.16.0
 

Modified: hadoop/hbase/branches/0.1/src/java/org/apache/hadoop/hbase/HConnectionManager.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.1/src/java/org/apache/hadoop/hbase/HConnectionManager.java?rev=632621&r1=632620&r2=632621&view=diff
==============================================================================
--- hadoop/hbase/branches/0.1/src/java/org/apache/hadoop/hbase/HConnectionManager.java (original)
+++ hadoop/hbase/branches/0.1/src/java/org/apache/hadoop/hbase/HConnectionManager.java Sat
Mar  1 08:44:15 2008
@@ -222,6 +222,9 @@
       if (tableName == null) {
         throw new IllegalArgumentException("Table name cannot be null");
       }
+      if (tableName.equals(ROOT_TABLE_NAME) || tableName.equals(META_TABLE_NAME)) {
+        return true;
+      }
       boolean exists = false;
       try {
         HTableDescriptor[] tables = listTables();



Mime
View raw message