HBASE-18714 The dropBehind and readahead don't be applied when useHBaseChecksum is enabled

This commit is contained in:
Chia-Ping Tsai 2017-08-29 23:46:15 +08:00
parent 835105b84a
commit 899255b76c
1 changed files with 2 additions and 2 deletions

View File

@ -127,13 +127,13 @@ public class FSDataInputStreamWrapper implements Closeable {
private void setStreamOptions(FSDataInputStream in) {
try {
this.stream.setDropBehind(dropBehind);
in.setDropBehind(dropBehind);
} catch (Exception e) {
// Skipped.
}
if (readahead >= 0) {
try {
this.stream.setReadahead(readahead);
in.setReadahead(readahead);
} catch (Exception e) {
// Skipped.
}