]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: when a period lookup for oldest_realm_epoch returns an ENOENT, 34597/head
authorShilpa Jagannath <smanjara@redhat.com>
Tue, 26 Nov 2019 08:03:52 +0000 (13:33 +0530)
committerNathan Cutler <ncutler@suse.com>
Thu, 16 Apr 2020 20:32:02 +0000 (22:32 +0200)
commitc99c4c7d0d072899b0546befeee3c151fe55ae33
tree3193ac415bcfbb7b496625b1fd4bc8ac38510902
parent87898c3ae8508d075d9913254ab8ab18c3e1cb19
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 nautilus; made the changes manually to
  src/rgw/rgw_metadata.cc
src/rgw/rgw_metadata.cc