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:
Jean-Daniel Cryans 2012-04-12 23:00:01 +00:00
parent 0717d13416
commit 1478088b10
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ public class SequenceFileLogWriter implements HLog.Writer {
public void init(FileSystem fs, Path path, Configuration conf) public void init(FileSystem fs, Path path, Configuration conf)
throws IOException { throws IOException {
// Should we do our custom WAL compression? // 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) { if (compress) {
try { try {
if (this.compressionContext == null) { if (this.compressionContext == null) {