]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls/hello: disable write returning data clobbering demo 30191/head
authorSage Weil <sage@redhat.com>
Tue, 10 Sep 2019 12:08:56 +0000 (07:08 -0500)
committerSage Weil <sage@redhat.com>
Thu, 12 Sep 2019 15:28:18 +0000 (10:28 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/cls/hello/cls_hello.cc

index c2b71d270846d7413875abd6e6e7e0ee454e7a3d..fd4e9ba4b6c1de2e8a6837bebe65e21fcd4905a5 100644 (file)
@@ -158,10 +158,12 @@ static int writes_dont_return_data(cls_method_context_t hctx, bufferlist *in, bu
 
   // try to return some data.  note that this *won't* reach the
   // client!  see the matching test case in test_cls_hello.cc.
-  out->append("you will never see this");
+#warning "disable this return data temporarily"
+  //out->append("you will never see this");
 
   // if we try to return anything > 0 here the client will see 0.
-  return 42;
+  //return 42;
+  return 0;
 }