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

Updates RocksDB dump #1184

Merged
merged 3 commits into from
Apr 13, 2023
Merged

Updates RocksDB dump #1184

merged 3 commits into from
Apr 13, 2023

Conversation

grarco
Copy link
Contributor

@grarco grarco commented Feb 23, 2023

Improves the ledger dump-db command. RocksDB iterator doesn't actually recognize the provided prefix correctly leading to duplicated keys in the dump file.

This PR solves the duplicated keys issue and adds an historic flag: if the flag is set it will dump the subspace keys and the diff of the last height, otherwise it will only dump the subspace subkeys.

tzemanovic
tzemanovic previously approved these changes Feb 24, 2023
grarco added a commit that referenced this pull request Feb 28, 2023
@grarco
Copy link
Contributor Author

grarco commented Feb 28, 2023

I've updated this PR to set an upper-bound on the storage iterator given that there still were some undesired keys being dumped

@grarco grarco marked this pull request as draft March 1, 2023 00:26
grarco added a commit that referenced this pull request Mar 1, 2023
@grarco grarco marked this pull request as ready for review March 1, 2023 12:01
@grarco grarco requested a review from tzemanovic March 1, 2023 18:36
@grarco grarco mentioned this pull request Mar 2, 2023
tzemanovic
tzemanovic previously approved these changes Mar 7, 2023
tzemanovic added a commit that referenced this pull request Apr 11, 2023
* grarco/rocksdb-dump:
  changelog: add #1184
  Improves iterator in `dump-db`
  Updates RocksDB dump
@tzemanovic tzemanovic mentioned this pull request Apr 11, 2023
@juped juped merged commit c6c6f27 into main Apr 13, 2023
@juped juped deleted the grarco/rocksdb-dump branch April 13, 2023 06:07
bengtlofgren pushed a commit that referenced this pull request May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants