Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
channeldb: fix bug in migration from 0.4 to 0.5
In this commit, we fix a bug in the latest database migration when migrating from 0.4 to 0.5. There's an issue in bolt db where if one deletes a bucket that has a key with a nil value, it thinks that's a sub bucket and attempts a bucket deletion. This will fail as it's not actually a sub-bucket. We get around this by using a cursor to manually delete items in the bucket. Fixes #1907.
- Loading branch information