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

scrub: do not assign value if read error #6568

Merged
merged 2 commits into from Nov 20, 2015
Merged

scrub: do not assign value if read error #6568

merged 2 commits into from Nov 20, 2015

Conversation

dragonylffly
Copy link
Contributor

Signed-off-by: Li Wang li.wang@kylin-cloud.com

@@ -778,9 +778,10 @@ void ReplicatedBackend::be_deep_scrub(
dout(25) << __func__ << " " << poid << " got "
<< r << " on read, read_error" << dendl;
o.read_error = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we could just return in the error case.

@dzafman
Copy link
Contributor

dzafman commented Nov 13, 2015

Would need the equivalent change in ECBackend::be_deep_scrub()

Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
@dragonylffly
Copy link
Contributor Author

@dzafman thanks for reviewing, updated

@dzafman
Copy link
Contributor

dzafman commented Nov 18, 2015

Reviewed-by once testing passes.

Come to think of it. Is this really a bug fix? Maybe this should be marked "cleanup."

liewegas added a commit that referenced this pull request Nov 20, 2015
scrub: do not assign value if read error

Reviewed-by: David Zafman <dzafman@redhat.com>
@liewegas liewegas merged commit e0dfa0d into ceph:master Nov 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants