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

osd: fix bug which cause can't erase OSDShardPGSlot. #21771

Merged
merged 1 commit into from May 3, 2018

Conversation

majianpeng
Copy link
Member

Signed-off-by: Jianpeng Ma jianpeng.ma@intel.com

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
}
if (slot->waiting.empty() &&
Copy link
Contributor

Choose a reason for hiding this comment

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

why? slot->waiting is updated in the if block above. so it is intuitive to check for empty in that if block also.

Copy link
Member Author

Choose a reason for hiding this comment

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

slot only erase if !slot->waiting.empty(). in normal delete pg, slot->waiting is empty. So it can't erase .

@dillaman dillaman added the core label May 2, 2018
@tchaikov tchaikov requested a review from jdurgin May 2, 2018 12:31
@tchaikov tchaikov added this to the mimic milestone May 2, 2018
@yuriw
Copy link
Contributor

yuriw commented May 2, 2018

@liewegas liewegas changed the base branch from master to mimic May 3, 2018 18:16
@yuriw yuriw merged commit 64448b6 into ceph:mimic May 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants