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: add an option to recalculate user stats #20853

Merged
merged 3 commits into from Apr 13, 2018

Commits on Mar 12, 2018

  1. rgw: radosgw-admin abort early for user stats for empty uids

    Otherwise we'll call sync stats with an empty argument which results in creation
    of an empty ".buckets" object
    
    Fixes: http://tracker.ceph.com/issues/23322
    Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
    theanalyst committed Mar 12, 2018
    Copy the full SHA
    aa3a408 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2018

  1. cls/user: implement reset user stats

    This is an implementation of reset user stats, that recalculates the user stats
    purely based on the values of bucket entries in user.buckets object. This is
    helpful in cases when user stats has been improperly set in case of manual
    resharding etc.
    
    Fixes: http://tracker.ceph.com/issues/23335
    Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
    theanalyst committed Mar 13, 2018
    Copy the full SHA
    63f9127 View commit details
    Browse the repository at this point in the history
  2. rgw: rgw-rados, rgw-admin add an option to recalculate user stats

    Adds a method in rgw-rados to reset user stats calling the earlier implemented
    cls user reset stats.
    In rgw-admin we add an option called --reset-stats that invokes this method.
    
    Fixes: http://tracker.ceph.com/issues/23335
    Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
    theanalyst committed Mar 13, 2018
    Copy the full SHA
    0b72dd7 View commit details
    Browse the repository at this point in the history