]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Do not decrement stats cache when the cache values are zero 16389/head
authorPavan Rallabhandi <PRallabhandi@walmartlabs.com>
Tue, 18 Jul 2017 09:10:04 +0000 (14:40 +0530)
committerPavan Rallabhandi <PRallabhandi@walmartlabs.com>
Tue, 25 Jul 2017 09:01:49 +0000 (14:31 +0530)
commit3903e213c7ac7624e3452f5f3b1ca1c339bf2ca2
treed98c4b5a5ebadd8083a37e6a675cc369a187adb3
parent78511bf25c0ee24b3b2720b9403659d9be57e1c1
rgw: Do not decrement stats cache when the cache values are zero

With RGWs configured in a load balancer, there is a possibility of
having the cached values going unbound, when PUT/DELETE operations
do not land up on the same RGW. To avoid such cases, make sure the
decrement of stats happen only when the cached values are sane.

Fixes: http://tracker.ceph.com/issues/20661
Signed-off-by: Pavan Rallabhandi <PRallabhandi@walmartlabs.com>
src/rgw/rgw_quota.cc