Skip to content
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

feat(arm): remove rocksDB compatibility with LevelDB #48

Open
wants to merge 1 commit into
base: arch/arm64
Choose a base branch
from

Conversation

halibobo1205
Copy link
Owner

for updating RocksDB

What does this PR do?

Why are these changes required?

This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details

@halibobo1205 halibobo1205 changed the title feat(toolkit): remove un-safe-mode for DbConvert feat(arm): remove un-safe-mode for DbConvert Oct 23, 2024
@halibobo1205 halibobo1205 added 4.8.1 and removed 4.8.0 labels Oct 31, 2024
@halibobo1205 halibobo1205 changed the base branch from develop to arch/arm64 October 31, 2024 10:03
@halibobo1205 halibobo1205 force-pushed the feat/remove_unsafe_mode_for_dbConvert branch from 24ca309 to 380fc45 Compare November 5, 2024 12:26
@halibobo1205 halibobo1205 force-pushed the feat/remove_unsafe_mode_for_dbConvert branch from 380fc45 to 947de69 Compare November 5, 2024 12:35
@halibobo1205 halibobo1205 changed the title feat(arm): remove un-safe-mode for DbConvert feat(arm): remove rocksDB compatibility with LevelDB Nov 5, 2024
@@ -172,7 +172,12 @@ public void setDBName(String name) {
public boolean checkOrInitEngine() {
String dir = getDbPath().toString();
String enginePath = dir + File.separator + "engine.properties";

File currentFile = new File(dir, "CURRENT");
if (currentFile.exists() && !Paths.get(enginePath).toFile().exists()) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember that the engine.properties would be added to the LevelDB during the db check in previous versions. Is it necessary to consider this in historical scenarios?

In addition, LevelDB and RocksDB seem to both have the CURRENT files. What is the purpose of this check?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

engine.properties is added by ArchiveManifest tools, not by FullNode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants