]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: add dummy support for CEPH_OSD_OP_WATCH. 30339/head
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 28 Aug 2019 14:40:30 +0000 (16:40 +0200)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Fri, 13 Sep 2019 20:12:32 +0000 (22:12 +0200)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/osd/ops_executer.cc

index 9db3da1cb70aa8b5e51b1b9e3a1a03f69cc1b3ce..105f4fbcd6a7692a9e4def9c7a6e94d56c0271cd 100644 (file)
@@ -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(