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:
parent
81593ed2bf
commit
ff916906a3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue