Skip to content

LMDB database is put in the wrong place under some circumstances #1753

@jasagredo

Description

@jasagredo

If the node specifies

 "DatabasePath": "<path>",
 "LedgerDB": {
    "Backend": "V1LMDB"
 }

The LMDB database will be put in mainnet/db/lmdb as that is the default in Cardano.Node.Configuration.LedgerDB.defaultLMDBPath. It should point to <path>/lmdb.

If the node specifies

 "DatabasePath": {
   "ImmutableDbPath": <p1>,
   "VolatileDbPath": <p2>
 },
 "LedgerDB": {
    "Backend": "V1LMDB"
 }

The LMDB database will still be put in mainnet/db/lmdb. It should be in <p2>/lmdb.

In short, it should be put in Ouroboros.Consensus.Node.nonImmutableDbPath dbPath </> "lmdb"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions