mirror of
https://github.com/ceph/ceph
synced 2025-02-20 17:37:29 +00:00
Merge pull request #38977 from adamemerson/wip-48929
rgw: Fix spurious error on empty datalog shard
This commit is contained in:
commit
29c9eb32e9
@ -39,7 +39,7 @@
|
||||
#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;
|
||||
|
||||
|
@ -192,6 +192,10 @@ public:
|
||||
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]
|
||||
|
Loading…
Reference in New Issue
Block a user