From 7244b8095639b8637310597d83085b839db9bb66 Mon Sep 17 00:00:00 2001 From: Chunmei Liu Date: Wed, 23 Mar 2022 23:37:59 -0700 Subject: [PATCH] crimson: return 0 in osd_op.rval when enodata Signed-off-by: Chunmei Liu --- src/crimson/osd/pg_backend.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/crimson/osd/pg_backend.cc b/src/crimson/osd/pg_backend.cc index c71cb661fe19d..fbd4dede290b6 100644 --- a/src/crimson/osd/pg_backend.cc +++ b/src/crimson/osd/pg_backend.cc @@ -1158,6 +1158,7 @@ PGBackend::omap_get_keys( bool truncated = false; encode(num, osd_op.outdata); encode(truncated, osd_op.outdata); + osd_op.rval = 0; return seastar::now(); }), ll_read_errorator::pass_further{} @@ -1292,6 +1293,7 @@ PGBackend::omap_get_vals( crimson::ct_error::enodata::handle([&osd_op] { encode(uint32_t{0} /* num */, osd_op.outdata); encode(bool{false} /* truncated */, osd_op.outdata); + osd_op.rval = 0; return ll_read_errorator::now(); }), ll_read_errorator::pass_further{} @@ -1330,6 +1332,7 @@ PGBackend::omap_get_vals_by_keys( crimson::ct_error::enodata::handle([&osd_op] { uint32_t num = 0; encode(num, osd_op.outdata); + osd_op.rval = 0; return ll_read_errorator::now(); }), ll_read_errorator::pass_further{} -- 2.39.5