From: Sage Weil Date: Tue, 10 Sep 2019 12:08:56 +0000 (-0500) Subject: cls/hello: disable write returning data clobbering demo X-Git-Tag: v15.1.0~1582^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=56b859ce33091b7a21cbe65e4e1e1214a847b7d0;p=ceph.git cls/hello: disable write returning data clobbering demo Signed-off-by: Sage Weil --- diff --git a/src/cls/hello/cls_hello.cc b/src/cls/hello/cls_hello.cc index c2b71d270846..fd4e9ba4b6c1 100644 --- a/src/cls/hello/cls_hello.cc +++ b/src/cls/hello/cls_hello.cc @@ -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; }