]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: make bucket index pending op expiration configureable
authorJ. Eric Ivancich <ivancich@redhat.com>
Thu, 20 Jan 2022 15:57:32 +0000 (10:57 -0500)
committerJ. Eric Ivancich <ivancich@redhat.com>
Thu, 24 Mar 2022 16:16:17 +0000 (12:16 -0400)
commit6e17a50497774a0aced555b90d87e56a1e510cb0
tree34458b2d84ec36ea37d7e6444a5d3654b9163b64
parent3877c1e37f2fa4e1574b57f05132288f210835a7
rgw: make bucket index pending op expiration configureable

Bucket index operations are transactional with data object
manipulation. The operation is prepared by adding a pending operation
record. And when the data object side is complete, the bucket index
operation is committed.

If it fails to be committed, later bucket listings will compare the
pending ops with the current data object state and see whether it
completed or not and then either commit or expire the op. The time
span for expiration is currently hard-coded as 120 seconds (unless
overridden in the bucket header, which can happen during "bucket
check").

This commit allows that expiration time to be configured.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
src/cls/rgw/cls_rgw.cc
src/cls/rgw/cls_rgw_types.h
src/common/options/rgw.yaml.in
src/rgw/rgw_bucket.cc