diff --git a/src/main/java/org/apache/hadoop/hbase/catalog/MetaReader.java b/src/main/java/org/apache/hadoop/hbase/catalog/MetaReader.java index 238740a2688..c3c7de8c2ee 100644 --- a/src/main/java/org/apache/hadoop/hbase/catalog/MetaReader.java +++ b/src/main/java/org/apache/hadoop/hbase/catalog/MetaReader.java @@ -609,6 +609,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);