From 56b859ce33091b7a21cbe65e4e1e1214a847b7d0 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 10 Sep 2019 07:08:56 -0500 Subject: [PATCH] cls/hello: disable write returning data clobbering demo Signed-off-by: Sage Weil --- src/cls/hello/cls_hello.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cls/hello/cls_hello.cc b/src/cls/hello/cls_hello.cc index c2b71d270846d..fd4e9ba4b6c1d 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; } -- 2.39.5