diff --git a/lib/db/ldb.js b/lib/db/ldb.js index 35863b1b..7f389456 100644 --- a/lib/db/ldb.js +++ b/lib/db/ldb.js @@ -47,7 +47,7 @@ function ldb(options) { // For LMDB if we decide to use it: sync: options.sync || false, - mapSize: options.mapSize || 2 * (1024 << 20), + mapSize: options.mapSize || 10 * (1024 << 20), writeMap: options.writeMap || false, noSubdir: options.noSubdir !== false, @@ -71,16 +71,19 @@ ldb.getBackend = function getBackend(db) { db = 'memory'; switch (db) { + case 'ldb': case 'leveldb': case 'leveldown': name = 'leveldown'; ext = 'ldb'; break; + case 'rdb': case 'rocksdb': case 'rocksdown': name = 'rocksdown'; ext = 'rdb'; break; + case 'mdb': case 'lmdb': name = 'lmdb'; ext = 'mdb';