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

rgw: check going_down() when lifecycle processing #18846

Merged
merged 1 commit into from Nov 10, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/rgw/rgw_lc.cc
Expand Up @@ -318,6 +318,8 @@ int RGWLC::handle_multipart_expiration(RGWRados::Bucket *target, const map<strin
ldout(cct, 0) << "ERROR: abort_multipart_upload failed, ret=" << ret <<dendl;
return ret;
}
if (going_down())
return 0;
}
}
} while(is_truncated);
Expand Down Expand Up @@ -457,6 +459,9 @@ int RGWLC::bucket_lc_process(string& shard_id)
} else {
ldout(cct, 10) << "DELETED:" << bucket_name << ":" << key << dendl;
}

if (going_down())
return 0;
}
}
} while (is_truncated);
Expand Down Expand Up @@ -559,6 +564,9 @@ int RGWLC::bucket_lc_process(string& shard_id)
} else {
ldout(cct, 10) << "DELETED:" << bucket_name << ":" << obj_iter->key << dendl;
}

if (going_down())
return 0;
}
}
} while (is_truncated);
Expand Down