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

Add bbolt surgery revert-meta-page command #385

Merged
merged 2 commits into from
Jan 16, 2023
Merged

Add bbolt surgery revert-meta-page command #385

merged 2 commits into from
Jan 16, 2023

Conversation

ahrtr
Copy link
Member

@ahrtr ahrtr commented Jan 16, 2023

Linked to #370

Note that the first commit is based on #384. Once 384 is merged, I will rebase this PR.

@ahrtr ahrtr requested a review from ptabor January 16, 2023 09:23
Copy link
Contributor

@ptabor ptabor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

cmd/bbolt/surgery_commands_test.go Outdated Show resolved Hide resolved
cmd/bbolt/surgery_commands_test.go Outdated Show resolved Hide resolved
cmd/bbolt/surgery_commands.go Show resolved Hide resolved

// RevertMetaPageCommand represents the "surgery revert-meta-page" command execution.
type RevertMetaPageCommand struct {
baseCommand
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that all surgery commands should operate on SrcPath and DstPath.

I think with the next tool the code will be better structured if we have composition with
a common tool: baseSurgeryToolCommand

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me do this when I add the next surgery command.

Signed-off-by: Benjamin Wang <wachao@vmware.com>
@ahrtr
Copy link
Member Author

ahrtr commented Jan 16, 2023

Just rebased this PR and address review comments. Let's consider to add more unit test later in separate PR.

cmd/bbolt/surgery_commands_test.go Outdated Show resolved Hide resolved
Signed-off-by: Benjamin Wang <wachao@vmware.com>
@ahrtr
Copy link
Member Author

ahrtr commented Jan 16, 2023

Thanks @ptabor for the quick review!

@ahrtr ahrtr merged commit 6652d82 into etcd-io:master Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants