-ENOENT on a shard simply means nothing has been written to it
yet. Return no entries and no error.
Also change dout_subsys target for fifo client so probes don't fill up
the logs.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Fixes: https://tracker.ceph.com/issues/48929
(cherry picked from commit
8c5c7c7a9098fc688f63503b254065e5b3b4ae45)
#include "cls_fifo_legacy.h"
namespace rgw::cls::fifo {
-static constexpr auto dout_subsys = ceph_subsys_rgw;
+static constexpr auto dout_subsys = ceph_subsys_objclass;
namespace cb = ceph::buffer;
namespace fifo = rados::cls::fifo;
max_entries, log_entries,
std::string(marker.value_or("")),
out_marker, truncated, null_yield);
+ if (r == -ENOENT) {
+ *truncated = false;
+ return 0;
+ }
if (r < 0) {
lderr(cct) << __PRETTY_FUNCTION__
<< ": failed to list " << oids[index]