-
Notifications
You must be signed in to change notification settings - Fork 867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Store db metadata file in the root data directory. #46
Store db metadata file in the root data directory. #46
Conversation
Signed-off-by: Edward Evans <edward.joshua.evans@gmail.com> Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
The database metadata file should be stored in the root data directory rather than the database subdirectory. The database subdirectory is owned by the database itself and should not be directly manipulated by the node. - first look in the data directory for the metadata file - if the metadata file is found there, process it as normal - if no metadata file is found in the root directory, look in the database subdirectory - if the file is found here, copy it to the root directory, and run based on the root directory version Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
…metadata-root-data-dir Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Do we think we need a review from the RocksDBPlugin folks?
besu/src/main/java/org/hyperledger/besu/services/BesuConfigurationImpl.java
Show resolved
Hide resolved
...ava/org/hyperledger/besu/plugin/services/storage/rocksdb/configuration/DatabaseMetadata.java
Show resolved
Hide resolved
...ava/org/hyperledger/besu/plugin/services/storage/rocksdb/configuration/DatabaseMetadata.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Do we think we need a review from the RocksDBPlugin folks?
That make sense. I'll ask their review.
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
PR description
The database metadata file should be stored in the root data directory rather than the database subdirectory. The database subdirectory is owned by the database itself and should not be directly manipulated by the node.
Fixed Issue(s)