-
Notifications
You must be signed in to change notification settings - Fork 662
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
store: remove integer values from DBCol variants (#7441)
So far we’ve been using ‘col##’ names for the RocksDB column families. This commit proposes to move away from this pattern for new columns and instead use variant name as the column family name. For example, rather than ‘col50’ for flat state we would simply use ‘FlatState’. This has a couple of advantages. Firstly, there’s no longer need to manually assign unique numbers to columns. Secondly, troubleshooting on RocksDB level becomes easier since it’s simpler to map from column family name to the column name used in source code. As far as I can tell, RocksDB doesn’t have a simple way to rename a column family. Because of that, this commit only makes the change in names for future columns leaving currently existing ones with ‘col##’ names.
- Loading branch information
Showing
3 changed files
with
132 additions
and
63 deletions.
There are no files selected for viewing
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