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

Removing a duplicate "setStoragePoolId()" call at the "LiveMigrateDiskCommand" class #651

Merged
merged 1 commit into from
Sep 13, 2022

Conversation

barpavel
Copy link
Member

Exactly the same call to setStoragePoolId() is already performed in init(), see [1].
So I see no reason why the same code should be executed again in validate(), especially that validate() is designed for other purposes.

[1] https://github.com/oVirt/ovirt-engine/blob/ovirt-engine-4.5.2/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/lsm/LiveMigrateDiskCommand.java#L143

Signed-off-by: Pavel Bar pbar@redhat.com

Exactly the same call to "setStoragePoolId()" is already performed in
"init()", see [1].
So I see no reason why the same code should be executed again in "validate()",
especially that "validate()" is designed for other purposes.

[1] https://github.com/oVirt/ovirt-engine/blob/ovirt-engine-4.5.2/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/lsm/LiveMigrateDiskCommand.java#L143

Signed-off-by: Pavel Bar <pbar@redhat.com>
@barpavel
Copy link
Member Author

This PR is not blocking any other PR, this is just a suggestion, something I noticed while working on another bug :)

@barpavel
Copy link
Member Author

/ost

@ahadas ahadas added the storage label Sep 13, 2022
@ahadas ahadas merged commit 389eadc into oVirt:master Sep 13, 2022
@barpavel barpavel deleted the remove_redundant_setStoragePoolId branch September 13, 2022 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants