diff options
author | warptangent <warptangent@inbox.com> | 2015-05-08 11:43:50 -0700 |
---|---|---|
committer | warptangent <warptangent@inbox.com> | 2015-05-08 14:12:18 -0700 |
commit | 54bd9c1ed562fdd82e83bd3b67b484d3591c10a8 (patch) | |
tree | 70a0619767ac68c17e91014ddf8c8770f28f18cc /src/blockchain_converter | |
parent | Condense #if directives (diff) | |
download | monero-54bd9c1ed562fdd82e83bd3b67b484d3591c10a8.tar.xz |
Add MDB_NORDAHEAD as a supported LMDB flag for blockchain_import
Diffstat (limited to 'src/blockchain_converter')
-rw-r--r-- | src/blockchain_converter/blockchain_import.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/blockchain_converter/blockchain_import.cpp b/src/blockchain_converter/blockchain_import.cpp index 0b8e7e00b..6f952375f 100644 --- a/src/blockchain_converter/blockchain_import.cpp +++ b/src/blockchain_converter/blockchain_import.cpp @@ -94,21 +94,15 @@ int parse_db_arguments(const std::string& db_arg_str, std::string& db_engine, in continue; LOG_PRINT_L1("LMDB flag: " << it); if (it == "nosync") - { mdb_flags |= MDB_NOSYNC; - } else if (it == "nometasync") - { mdb_flags |= MDB_NOMETASYNC; - } else if (it == "writemap") - { mdb_flags |= MDB_WRITEMAP; - } else if (it == "mapasync") - { mdb_flags |= MDB_MAPASYNC; - } + else if (it == "nordahead") + mdb_flags |= MDB_NORDAHEAD; else { std::cerr << "unrecognized database flag: " << it << ENDL; |