summaryrefslogtreecommitdiffstats
path: root/src/crimson/osd/pg_backend.h
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2020-08-20 14:52:11 +0200
committerKefu Chai <kchai@redhat.com>2020-08-24 11:49:41 +0200
commit120c48340afd32d5c84a638e2b81a74ba3313fe0 (patch)
treecbf221ad4ae41a07bdce6976272029064f1c5b46 /src/crimson/osd/pg_backend.h
parentcrimson/osd: implement append op (diff)
downloadceph-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.h6
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;