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

erasure-code: refactor the interfaces to hide internals from public #18683

Merged
merged 2 commits into from Nov 9, 2017

Conversation

tchaikov
Copy link
Contributor

@tchaikov tchaikov commented Nov 2, 2017

after the arraycode change, the old encode() and minimum_to_decode() are
actually replaced by the new counterparts, and are only used by the
ErasureCode itself. so they can be marked private, and to avoid the
-Woverloaded-virtual warnings, because the new methods share the same
names with the old ones. an underscore is used as the prefix of the
internal methods.

Signed-off-by: Kefu Chai kchai@redhat.com

@tchaikov tchaikov changed the title erasure-code: refactore the interfaces to hide internals from public erasure-code: refactor the interfaces to hide internals from public Nov 2, 2017
@tchaikov
Copy link
Contributor Author

tchaikov commented Nov 2, 2017

@mynaramana does this make sense?

@tchaikov tchaikov force-pushed the wip-erasure-cleanup branch 5 times, most recently from 5db6307 to 37b6c5b Compare November 2, 2017 16:03
@djgalloway
Copy link

jenkins test this please

after the arraycode change, the old encode() and minimum_to_decode() are
actually replaced by the new counterparts, and are only used by the
ErasureCode itself. so they can be marked `private`, but the unittests
are still using them heavily. so they are kept `public`. and to avoid the
`-Woverloaded-virtual` warnings, because the new methods share the same
names with the old ones. a underscore is used as the prefix of the
internal methods.

Signed-off-by: Kefu Chai <kchai@redhat.com>
…r ErasureCodeExample

so instead of implementing it, we can just use it default one.

Signed-off-by: Kefu Chai <kchai@redhat.com>
@tchaikov
Copy link
Contributor Author

tchaikov commented Nov 5, 2017

@tchaikov
Copy link
Contributor Author

tchaikov commented Nov 9, 2017

@liewegas @jdurgin ping?

@liewegas liewegas merged commit 3855d2c into ceph:master Nov 9, 2017
@tchaikov tchaikov deleted the wip-erasure-cleanup branch November 10, 2017 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants