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: fix a bug about inconsistent unit of comparison #17958

Merged
merged 1 commit into from Sep 30, 2017

Conversation

gaosibei
Copy link

@gaosibei gaosibei commented Sep 26, 2017

The unit of cached_stats_num_kb_rounded is KB, and the unit of quota.max_size_soft_threshold is B. We use cached_stats.size_rounded instead of
cached_stats_num_kb_rounded.

Fixes:http://tracker.ceph.com/issues/21590
Signed-off-by: Sibei Gao gaosb@inspur.com

Copy link
Member

@joscollin joscollin left a comment

Choose a reason for hiding this comment

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

@mdw-at-linuxbox
Copy link
Contributor

Actually the unit is still "bytes" (rounded) -- but rounding twice is silly, so this change is good.

@mdw-at-linuxbox
Copy link
Contributor

For the "Fixes: " fix, you'll need to update the commit itself, not just the conversation here.. There's no logic in github to push chagnes in the "conversation" stream here back into commits. Usually that means doing a "force-push" to get it back to github, because you'll be overwritting the old branch. Once you do that I can merge this.

@gaosibei
Copy link
Author

@mdw-at-linuxbox

Thanks for taking a look!

I've updated the commit with “Fixes:http://tracker.ceph.com/issues/21590“

@mdw-at-linuxbox mdw-at-linuxbox merged commit 61f292e into ceph:master Sep 30, 2017
@gaosibei gaosibei deleted the branch1 branch October 10, 2017 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants