Skip to content

Commit 49cb671

Browse files
committed
neorados: relax fifo trim error for ENODATA
Don't log failure if no data is there to be trimmed. this can be seen by running `radosgw-admin datalog autotrim`. Signed-off-by: Seena Fallah <[email protected]>
1 parent eb3d949 commit 49cb671

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/neorados/cls/fifo.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1734,8 +1734,10 @@ class FIFO {
17341734
sys::error_code{});
17351735
co_return sys::error_code{};
17361736
} catch (const sys::system_error& e) {
1737-
ldpp_dout(dpp, -1) << __PRETTY_FUNCTION__ << ":" << __LINE__
1738-
<< " trim failed: " << e.what() << dendl;
1737+
if (ceph::from_error_code(e.code()) != -ENODATA) {
1738+
ldpp_dout(dpp, -1) << __PRETTY_FUNCTION__ << ":" << __LINE__
1739+
<< " trim failed: " << e.what() << dendl;
1740+
}
17391741
co_return e.code();
17401742
}
17411743
}, rados.get_executor()),

0 commit comments

Comments
 (0)