-
Notifications
You must be signed in to change notification settings - Fork 648
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
Enhance the check command to support diagnosing a subtree #580
Comments
Hi @ahrtr, |
Thanks @ishan16696 |
@ishan16696 any update on this? |
Hi @ahrtr , |
@ahrtr do you want to take pageID as an argument ?
|
For the CMD, let's add two optional flags
If users do not specify the pageId and elementIdx, then the default behaviour is still checking the whole db file. Also note that it doesn't make sense only specifying For the (*Tx) Check, please get the new options/parameters included in the CheckOption, so as to be backward compatible. |
make sense, at the same only specifying the |
YES. If only |
any update? Please let me know if you need my assistance? |
yes, I have made some progress. I have plan to work on this feature this weekend.
thanks, I will try to open a draft PR and you can have a look. |
Discussed with @ishan16696 offline, I will take over the task and @ishan16696 will continue to work on the cmd change.
|
Shall i cherry pick this PR and continue atop of it ? |
We can merge #651 directly after it being reviewed. I will raise another draft PR, then you can cherry-pick it. |
@ishan16696 Please feel free to deliver a PR to update the cmd. thx |
@ishan16696 are you still interested working on this? I will take over if there is no response in this week. thx |
@ahrtr i can continue working on it |
thx. Let's wait for @ishan16696 's response firstly, if there is no response this week, then please feel free to raise a PR to update the CLI. |
I have open a PR. Please have a look. |
Does anyone have bandwidth and be interested in resolve comment below? |
@ahrtr on me 👍🏽 |
@ahrtr, are we fine re-implementing as a cobra-style command? We know that pflags are not compatible with Go-native flags (as they're not POSIX compliant). |
It should be ok as long as there is no any behaviour change from users' perspective. |
Please feel free to work on it, since @ivanvc already thumbed up your comment above #580 (comment) |
Sorry for the confusion @Elbehery. Yes, my thumbs up meant that I ACK'd that you would work on it. I just wanted to confirm the decision to migrate the command to cobra-style ✌️ |
i rasied #723 to fix #580 (comment) |
We still need to enhance the |
All done. Thanks all. |
The whole db is indexed using b+tree. The existing check functionality checks the whole db, naming the whole tree. It would be useful if it supports checking a sub-tree, naming support checking starting from a pageId or pageId + elementId.
Based on this new feature, we will be able to know whether any sub-tree is healthy or corrupted.
The text was updated successfully, but these errors were encountered: