From fcfbfc10269789bccce1022f7b98cc5711a071c3 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Tue, 26 Jul 2016 13:15:56 +0000 Subject: [PATCH] NOLOCK set for lmdb database --- src/MicroCore.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MicroCore.cpp b/src/MicroCore.cpp index d2b3d3d..eb3eb04 100644 --- a/src/MicroCore.cpp +++ b/src/MicroCore.cpp @@ -39,12 +39,12 @@ namespace xmreg blockchain_path = _blockchain_path; //db_flags |= MDB_RDONLY; - //db_flags |= MDB_NOLOCK; + db_flags |= MDB_NOLOCK; //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; db = new BlockchainLMDB();