forked from tronprotocol/java-tron
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(db): update leveldb and rocksdb for arm
- Loading branch information
1 parent
c136a26
commit 15036b0
Showing
23 changed files
with
493 additions
and
254 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
chainbase/src/main/java/org/tron/common/storage/OptionsPicker.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.tron.common.storage; | ||
|
||
import org.tron.common.setting.RocksDbSettings; | ||
import org.tron.common.utils.StorageUtils; | ||
|
||
public class OptionsPicker { | ||
|
||
protected org.iq80.leveldb.Options getOptionsByDbNameForLevelDB(String dbName) { | ||
return StorageUtils.getOptionsByDbName(dbName); | ||
} | ||
|
||
protected org.rocksdb.Options getOptionsByDbNameForRocksDB(String dbName) { | ||
return RocksDbSettings.getOptionsByDbName(dbName); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.