]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cls/user: implement reset user stats
authorAbhishek Lekshmanan <abhishek@suse.com>
Mon, 12 Mar 2018 19:17:36 +0000 (20:17 +0100)
committerAbhishek Lekshmanan <abhishek@suse.com>
Thu, 12 Apr 2018 18:04:06 +0000 (20:04 +0200)
commit7bdd82ab5b0b2edc7a8c3061a631b95742e75f9d
tree20b4aede42f314cc590f3aeef86d6474c797d91b
parent2629d513929ce57d01c909a8461444e06e8f55ed
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.

Luminous only additions:
use global scope for encode in cls_user_ops

Fixes: http://tracker.ceph.com/issues/23335
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 63f9127dd685890d938a612739320c942a96f910)
src/cls/user/cls_user.cc
src/cls/user/cls_user_client.cc
src/cls/user/cls_user_client.h
src/cls/user/cls_user_ops.h