From 0c34630c9fab3f1dacf27dff8efdb0cd8234b1cc Mon Sep 17 00:00:00 2001 From: Julien Muchembled <jm@nexedi.com> Date: Wed, 18 Apr 2018 12:31:17 +0200 Subject: [PATCH] importer: reenable compression by default It was disabled by mistake in commit fd80cc303204bd1f7d1211b781d88e94582ee923. --- neo/storage/database/importer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neo/storage/database/importer.py b/neo/storage/database/importer.py index 73c4c324..dd65bfe1 100644 --- a/neo/storage/database/importer.py +++ b/neo/storage/database/importer.py @@ -297,9 +297,9 @@ class ImporterDatabaseManager(DatabaseManager): main = {'adapter': 'MySQL', 'wait': 0} main.update(config.items(sections.pop(0))) self.zodb = ((x, dict(config.items(x))) for x in sections) - x = main.get('compress') + x = main.get('compress', 'true') try: - self.compress = bool(x and ('false', 'true').index(x)) + self.compress = bool(('false', 'true').index(x)) except ValueError: self.compress = compress.parseOption(x) self.db = buildDatabaseManager(main['adapter'], -- 2.30.9