]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix user stats iterative increment 36542/head
authorMark Kogan <mkogan@redhat.com>
Mon, 10 Aug 2020 10:19:19 +0000 (13:19 +0300)
committerMark Kogan <mkogan@redhat.com>
Mon, 10 Aug 2020 10:19:19 +0000 (13:19 +0300)
The RGWBucketCtl::sync_user_stats() function can increment or reset the
stats [1][2]

[1]https://github.com/ceph/ceph/blob/master/src/rgw/rgw_bucket.cc#L3745
[2]https://github.com/ceph/ceph/blob/master/src/rgw/services/svc_bi_rados.cc#L379-L381

fixes: https://tracker.ceph.com/issues/46400

Signed-off-by: Mark Kogan <mkogan@redhat.com>
src/rgw/rgw_sal.cc

index 8b9d95edc285d683c294405db203a3503a2b75d6..afb6ea0ffc63bd6375a0a0d9ddb396935c0e064d 100644 (file)
@@ -206,7 +206,7 @@ int RGWRadosBucket::read_bucket_stats(optional_yield y)
 
 int RGWRadosBucket::sync_user_stats()
 {
-      return store->ctl()->bucket->sync_user_stats(owner->get_id(), info, &ent);
+      return store->ctl()->bucket->sync_user_stats(owner->get_id(), info);
 }
 
 int RGWRadosBucket::update_container_stats(void)