]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: de-conflate shard_id and request_id in CLSRGWConcurrentIO
authorJ. Eric Ivancich <ivancich@redhat.com>
Fri, 16 Jul 2021 19:31:35 +0000 (15:31 -0400)
committerDan van der Ster <daniel.vanderster@cern.ch>
Tue, 1 Mar 2022 10:31:01 +0000 (11:31 +0100)
commit8ab549a9c8596c694839606f3255da9a08187d60
tree3ff51172ea00f495716d975ce529c8c1038a90ad
parent805a95e2fc287ed85bc3a37cc6ddbfdebe53d745
rgw: de-conflate shard_id and request_id in CLSRGWConcurrentIO

When using asynchronous (concurrent) IO for bucket index requests,
there are two int ids that are used that need to be kept separate --
shard id and request id. In many cases they're the same -- shard 0
gets request 0, and so forth.

But in preparation for re-requests, those ids can diverge, where
request 13 maps to shard 2. The existing code maintained the OIDs that
went with each request. This PR also maintains the shard id as
well. Documentation has been beefed up to help future developers
navigate this.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 9606346592dfd6261aa2daa4cbec56f9a72c65fc)
src/cls/rgw/cls_rgw_client.cc
src/cls/rgw/cls_rgw_client.h