mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
NOLOCK set for lmdb database
This commit is contained in:
parent
416a0634db
commit
fcfbfc1026
1 changed files with 3 additions and 3 deletions
|
@ -39,12 +39,12 @@ namespace xmreg
|
||||||
blockchain_path = _blockchain_path;
|
blockchain_path = _blockchain_path;
|
||||||
|
|
||||||
//db_flags |= MDB_RDONLY;
|
//db_flags |= MDB_RDONLY;
|
||||||
//db_flags |= MDB_NOLOCK;
|
db_flags |= MDB_NOLOCK;
|
||||||
//db_flags |= MDB_SYNC;
|
//db_flags |= MDB_SYNC;
|
||||||
|
|
||||||
uint64_t DEFAULT_FLAGS = MDB_NOMETASYNC | MDB_NORDAHEAD;
|
// uint64_t DEFAULT_FLAGS = MDB_NOMETASYNC | MDB_NORDAHEAD;
|
||||||
|
|
||||||
db_flags = DEFAULT_FLAGS;
|
//db_flags = DEFAULT_FLAGS;
|
||||||
|
|
||||||
BlockchainDB* db = nullptr;
|
BlockchainDB* db = nullptr;
|
||||||
db = new BlockchainLMDB();
|
db = new BlockchainLMDB();
|
||||||
|
|
Loading…
Reference in a new issue