]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/multisite/datalog: Decrement with grace period
authorAdam Emerson <aemerson@redhat.com>
Fri, 12 Jul 2024 22:05:20 +0000 (18:05 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Tue, 1 Apr 2025 15:10:14 +0000 (11:10 -0400)
commit61fee0ef048289599992dc68db2baeb5fb92b087
tree6cb7a651e607b4bd20ed76be2a321a031946894a
parentb22867383a2d9c7b13d3eb53b3f12be830835fa1
rgw/multisite/datalog: Decrement with grace period

This guards against an excess decrement in the sequence:

RGW_a: Fetch sem_set (see key 'foo')
RGW_b: run renew_entry ('foo' is no longer in `cur_cycle`)
RGW_a: notify (does not see 'foo' in response)
RGW_a: Decrements 'foo'

Signed-off-by: Adam Emerson <aemerson@redhat.com>
src/cls/sem_set/DESIGN.md
src/rgw/driver/rados/rgw_datalog.cc
src/rgw/driver/rados/rgw_datalog.h