-
Notifications
You must be signed in to change notification settings - Fork 649
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
Added flag -page-Id
for check sub-command of bbolt CLI.
#698
Conversation
defer requireDBNoChange(t, dbData(t, db.Path()), db.Path()) | ||
|
||
m := NewMain() | ||
err := m.Run("check", "-page-Id", "0", db.Path()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parameter "0" doesn't make sense, as the default value is 0, it has the same behaviour as no parameter being provided at all. We should populate some sample data, and find out a branch page ID and at least a leaf page ID, and run bbolt check
on the page IDs.
I think we can directly migrate the Refer to: #472 |
Signed-off-by: ishan16696 <[email protected]>
Signed-off-by: ishan16696 <[email protected]>
bba77f5
to
ea00d4f
Compare
@ishan16696 Are you still working on this PR? Please resolve the two comments above. Please let me know if you need others' help. |
I will only be able to work on this PR during this weekend. |
I will open a separate PR for this. Hence, closing this PR. |
Part of this feature: #580