Only use dataDir in CEvoDB when not in-memory (#2291)
This commit is contained in:
parent
8a878bfcfd
commit
6adc236d0e
@ -7,7 +7,7 @@
|
|||||||
CEvoDB* evoDb;
|
CEvoDB* evoDb;
|
||||||
|
|
||||||
CEvoDB::CEvoDB(size_t nCacheSize, bool fMemory, bool fWipe) :
|
CEvoDB::CEvoDB(size_t nCacheSize, bool fMemory, bool fWipe) :
|
||||||
db(GetDataDir() / "evodb", nCacheSize, fMemory, fWipe),
|
db(fMemory ? "" : (GetDataDir() / "evodb"), nCacheSize, fMemory, fWipe),
|
||||||
dbTransaction(db)
|
dbTransaction(db)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user