Skip to content

Commit

Permalink
crimson/osd: add dummy support for CEPH_OSD_OP_WATCH.
Browse files Browse the repository at this point in the history
Signed-off-by: Radoslaw Zarzynski <[email protected]>
  • Loading branch information
rzarzynski committed Sep 13, 2019
1 parent cf186a5 commit 9e71e56
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/crimson/osd/ops_executer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,13 @@ OpsExecuter::do_osd_op(OSDOp& osd_op)
return backend.omap_set_vals(os, osd_op, txn);
});

// watch/notify
case CEPH_OSD_OP_WATCH:
return do_write_op([&osd_op] (auto& backend, auto& os, auto& txn) {
logger().warn("CEPH_OSD_OP_WATCH is not implemented yet; ignoring");
return seastar::now();
});

default:
logger().warn("unknown op {}", ceph_osd_op_name(op.op));
throw std::runtime_error(
Expand Down

0 comments on commit 9e71e56

Please sign in to comment.