]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: Fix cursor handling in DataLogBackends::list
authorAdam C. Emerson <aemerson@redhat.com>
Tue, 2 Feb 2021 19:09:52 +0000 (14:09 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Mon, 5 Apr 2021 17:47:49 +0000 (13:47 -0400)
commit0a2bee7e18367fbb1be73ece26e1a6efb099c161
treec69de22d954f40bb0fc723699cbd32015c939db7
parentad5a2fadf0fb16d4fc3066811fe11fc53c868263
rgw: Fix cursor handling in DataLogBackends::list

Don't assume that the lowest generation not greater than the requested
generation actually is the requested generation.

(Also don't hold the lock after we get a backend.)

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit d7739178e994ce84886d297a29f2250e4bd78daa)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/rgw/rgw_datalog.cc