Remove unnecessary compression

This commit is contained in:
nicksavers 2014-08-02 01:15:38 +02:00
parent d2ea940992
commit cfe42aec5b
1 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ import java.util.Collections;
import java.util.List; import java.util.List;
import org.ethereum.config.SystemProperties; import org.ethereum.config.SystemProperties;
import org.iq80.leveldb.CompressionType;
import org.iq80.leveldb.DB; import org.iq80.leveldb.DB;
import org.iq80.leveldb.DBIterator; import org.iq80.leveldb.DBIterator;
import org.iq80.leveldb.Options; import org.iq80.leveldb.Options;
@ -34,6 +35,7 @@ public class DatabaseImpl implements Database {
this.name = name; this.name = name;
Options options = new Options(); Options options = new Options();
options.createIfMissing(true); options.createIfMissing(true);
options.compressionType(CompressionType.NONE);
try { try {
logger.debug("Opening database"); logger.debug("Opening database");
File dbLocation = new File(System.getProperty("user.dir") + "/" + File dbLocation = new File(System.getProperty("user.dir") + "/" +
@ -45,7 +47,6 @@ public class DatabaseImpl implements Database {
} }
logger.debug("Initializing new or existing DB: '" + name + "'"); logger.debug("Initializing new or existing DB: '" + name + "'");
options.createIfMissing(true);
db = factory.open(fileLocation, options); db = factory.open(fileLocation, options);
// logger.debug("Showing database stats"); // logger.debug("Showing database stats");
// String stats = DATABASE.getProperty("leveldb.stats"); // String stats = DATABASE.getProperty("leveldb.stats");