hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From la...@apache.org
Subject svn commit: r1333315 - /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/catalog/MetaReader.java
Date Thu, 03 May 2012 06:05:17 GMT
Author: larsh
Date: Thu May  3 06:05:17 2012
New Revision: 1333315

URL: http://svn.apache.org/viewvc?rev=1333315&view=rev
Log:
HBASE-5913 Speed up the full scan of META

Modified:
    hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/catalog/MetaReader.java

Modified: hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/catalog/MetaReader.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/catalog/MetaReader.java?rev=1333315&r1=1333314&r2=1333315&view=diff
==============================================================================
--- hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/catalog/MetaReader.java (original)
+++ hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/catalog/MetaReader.java Thu
May  3 06:05:17 2012
@@ -696,6 +696,11 @@ public class MetaReader {
   throws IOException {
     Scan scan = new Scan();
     if (startrow != null) scan.setStartRow(startrow);
+    if (startrow == null && !scanRoot) {
+      int caching = catalogTracker.getConnection().getConfiguration()
+          .getInt(HConstants.HBASE_META_SCANNER_CACHING, 100);
+      scan.setCaching(caching);
+    }
     scan.addFamily(HConstants.CATALOG_FAMILY);
     HTable metaTable = scanRoot?
       getRootHTable(catalogTracker): getMetaHTable(catalogTracker);



Mime
View raw message