diff options
author | Kefu Chai <kchai@redhat.com> | 2020-08-20 14:52:11 +0200 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2020-08-24 11:49:41 +0200 |
commit | 120c48340afd32d5c84a638e2b81a74ba3313fe0 (patch) | |
tree | cbf221ad4ae41a07bdce6976272029064f1c5b46 /src/crimson/osd/pg_backend.h | |
parent | crimson/osd: implement append op (diff) | |
download | ceph-120c48340afd32d5c84a638e2b81a74ba3313fe0.tar.xz ceph-120c48340afd32d5c84a638e2b81a74ba3313fe0.zip |
crimson/osd: implement omap-clear op
it is tested by test_rados.py:TestIoctx.test_clear_omap, so let's support
this op in crimson as well.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/crimson/osd/pg_backend.h')
-rw-r--r-- | src/crimson/osd/pg_backend.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/crimson/osd/pg_backend.h b/src/crimson/osd/pg_backend.h index b650f9095b4..6cad22eeb89 100644 --- a/src/crimson/osd/pg_backend.h +++ b/src/crimson/osd/pg_backend.h @@ -183,6 +183,12 @@ public: ObjectState& os, OSDOp& osd_op, ceph::os::Transaction& trans); + using omap_clear_ertr = crimson::errorator<crimson::ct_error::enoent>; + omap_clear_ertr::future<> omap_clear( + ObjectState& os, + OSDOp& osd_op, + ceph::os::Transaction& trans, + osd_op_params_t& osd_op_params); virtual void got_rep_op_reply(const MOSDRepOpReply&) {} virtual seastar::future<> stop() = 0; |