mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
Add MDB_NORDAHEAD as a supported LMDB flag for blockchain_import
This commit is contained in:
parent
a52496de77
commit
54bd9c1ed5
@ -94,21 +94,15 @@ int parse_db_arguments(const std::string& db_arg_str, std::string& db_engine, in
|
|||||||
continue;
|
continue;
|
||||||
LOG_PRINT_L1("LMDB flag: " << it);
|
LOG_PRINT_L1("LMDB flag: " << it);
|
||||||
if (it == "nosync")
|
if (it == "nosync")
|
||||||
{
|
|
||||||
mdb_flags |= MDB_NOSYNC;
|
mdb_flags |= MDB_NOSYNC;
|
||||||
}
|
|
||||||
else if (it == "nometasync")
|
else if (it == "nometasync")
|
||||||
{
|
|
||||||
mdb_flags |= MDB_NOMETASYNC;
|
mdb_flags |= MDB_NOMETASYNC;
|
||||||
}
|
|
||||||
else if (it == "writemap")
|
else if (it == "writemap")
|
||||||
{
|
|
||||||
mdb_flags |= MDB_WRITEMAP;
|
mdb_flags |= MDB_WRITEMAP;
|
||||||
}
|
|
||||||
else if (it == "mapasync")
|
else if (it == "mapasync")
|
||||||
{
|
|
||||||
mdb_flags |= MDB_MAPASYNC;
|
mdb_flags |= MDB_MAPASYNC;
|
||||||
}
|
else if (it == "nordahead")
|
||||||
|
mdb_flags |= MDB_NORDAHEAD;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::cerr << "unrecognized database flag: " << it << ENDL;
|
std::cerr << "unrecognized database flag: " << it << ENDL;
|
||||||
|
Loading…
Reference in New Issue
Block a user