HBASE-5778 Turn on WAL compression by default
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1325566 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0717d13416
commit
1478088b10
|
@ -132,7 +132,7 @@ public class SequenceFileLogWriter implements HLog.Writer {
|
|||
public void init(FileSystem fs, Path path, Configuration conf)
|
||||
throws IOException {
|
||||
// Should we do our custom WAL compression?
|
||||
boolean compress = conf.getBoolean(HConstants.ENABLE_WAL_COMPRESSION, false);
|
||||
boolean compress = conf.getBoolean(HConstants.ENABLE_WAL_COMPRESSION, true);
|
||||
if (compress) {
|
||||
try {
|
||||
if (this.compressionContext == null) {
|
||||
|
|
Loading…
Reference in New Issue