]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: when a period lookup for oldest_realm_epoch returns an ENOENT, 33309/head
authorShilpa Jagannath <smanjara@redhat.com>
Tue, 26 Nov 2019 08:03:52 +0000 (13:33 +0530)
committerNathan Cutler <ncutler@suse.com>
Fri, 14 Feb 2020 11:52:27 +0000 (12:52 +0100)
commit6acc458e59612a9e52fec0e574d2707cba630677
treeda2a1f106c1cd13a802a75fe748b7cd0366a6d18
parentcb8591cc400f2786f9101b089a932d3a6d980aa7
rgw: when a period lookup for oldest_realm_epoch returns an ENOENT,
find the oldest one and update RGWMetadataLogHistory. This is to avoid an
empty cursor being passed in to ceph_assert() in PurgePeriodLogsCR::operate()
in case of incomplete period history.

Fixes: https://tracker.ceph.com/issues/40341
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
(cherry picked from commit 0ea65d81d4d5431ca22340149dbd714e395ecdc3)

Conflicts:
src/rgw/services/svc_mdlog.cc
- file does not exist in mimic; made the changes manually to
  src/rgw/rgw_metadata.cc
- in mimic, find_oldest_period takes an argument: store
- in mimic, write_history takes an additional argument: store
src/rgw/rgw_metadata.cc