]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: avoid shard recreation during bilog trimming if it doesn't exist
authorSeena Fallah <seenafallah@gmail.com>
Mon, 31 Mar 2025 20:15:42 +0000 (22:15 +0200)
committerSeena Fallah <seenafallah@gmail.com>
Mon, 31 Mar 2025 21:13:02 +0000 (23:13 +0200)
commita74fd8bfd0c1be740647f60d5d73c9fc96dcc32a
tree11a2f6b65bee82954df86a6e43afd758ba8bfb59
parent8f604eaf78a86bf26f5682b34b828117b5c6f9e4
rgw: avoid shard recreation during bilog trimming if it doesn't exist

When trimming bilogs, avoid recreating shards that don't exist. Instead,
calling assert_exists() will return ENOENT, and the result will be logged
in handle_result() without unnecessary shard creation.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
src/rgw/driver/rados/rgw_cr_rados.cc
src/rgw/driver/rados/rgw_trim_bilog.cc