]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: cls_user sync entry stats when not a add op 10121/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Mon, 4 Jul 2016 13:48:16 +0000 (15:48 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Mon, 4 Jul 2016 13:49:27 +0000 (15:49 +0200)
commit06955d66d8ca31eeb2cbbaff0b781326345becb9
treeb5c4d9b8a9b2d96d7577393dded1b1abe24dab6f
parent2066ad818fceaa5c9a456fa2bc395671d6538fd8
rgw: cls_user sync entry stats when not a add op

when cls_user_set_buckets_info is called by create bucket, we sync the
entry stats from the given info and thus end up setting the existing
stats on a bucket to 0, this is later corrected during a bucket sync,
however there is no need to update the entry and override the existing
bucket count and stats (as these aren't set during the call) and if it
is a new bucket call we already copy over the values earlier.

Fixes: http://tracker.ceph.com/issues/16357
Reported-by: pengju jiao <pj.jiao@139.com>
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/cls/user/cls_user.cc