HBASE-5778 Turn on WAL compression by default
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1325801 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3976ec641e
commit
401c4ec014
|
@ -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, true);
|
boolean compress = conf.getBoolean(HConstants.ENABLE_WAL_COMPRESSION, false);
|
||||||
if (compress) {
|
if (compress) {
|
||||||
try {
|
try {
|
||||||
if (this.compressionContext == null) {
|
if (this.compressionContext == null) {
|
||||||
|
|
Loading…
Reference in New Issue