From 4a0eaa6b3440316eb3b94b85a494220134493515 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 18 Aug 2016 01:38:41 -0700 Subject: [PATCH] ldb: options. --- lib/bcoin/ldb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bcoin/ldb.js b/lib/bcoin/ldb.js index 61eb310e..d4b86c0a 100644 --- a/lib/bcoin/ldb.js +++ b/lib/bcoin/ldb.js @@ -36,8 +36,8 @@ function ldb(options) { return new LowlevelUp(options.location, { // LevelDB and others - createIfMissing: true, - errorIfExists: false, + createIfMissing: options.createIfMissing !== false, + errorIfExists: options.errorIfExists === true, compression: options.compression !== false, cacheSize: options.cacheSize || (8 << 20), writeBufferSize: options.writeBufferSize || (4 << 20),