HBASE-10884 [REST] Do not disable block caching when scanning

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1589308 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Kyle Purtell 2014-04-22 23:36:13 +00:00
parent 81593ed2bf
commit ff916906a3
1 changed files with 1 additions and 3 deletions

View File

@ -91,12 +91,10 @@ public class ScannerResultGenerator extends ResultGenerator {
if (filter != null) {
scan.setFilter(filter);
}
// always disable block caching on the cluster when scanning
scan.setCacheBlocks(false);
if (caching > 0 ) {
scan.setCaching(caching);
}
if(rowspec.hasLabels()) {
if (rowspec.hasLabels()) {
scan.setAuthorizations(new Authorizations(rowspec.getLabels()));
}
scanner = table.getScanner(scan);