From: Adam C. Emerson Date: Fri, 29 Mar 2019 01:41:15 +0000 (-0400) Subject: cls/sdk: Update cls_sdk.cc to work without using namespace X-Git-Tag: v15.0.0~19^2~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fe5e8d3c49e27463a709c9310303399f3e21feaf;p=ceph.git cls/sdk: Update cls_sdk.cc to work without using namespace Signed-off-by: Adam C. Emerson --- diff --git a/src/cls/sdk/cls_sdk.cc b/src/cls/sdk/cls_sdk.cc index 95b5096a7d1d..843369f1c4a8 100644 --- a/src/cls/sdk/cls_sdk.cc +++ b/src/cls/sdk/cls_sdk.cc @@ -16,7 +16,7 @@ cls_method_handle_t h_test_coverage_replay; * This method modifies the object by making multiple write calls (write, * setxattr and set_val). */ -static int test_coverage_write(cls_method_context_t hctx, bufferlist *in, bufferlist *out) +static int test_coverage_write(cls_method_context_t hctx, ceph::buffer::list *in, ceph::buffer::list *out) { // create the object int ret = cls_cxx_create(hctx, false); @@ -32,7 +32,7 @@ static int test_coverage_write(cls_method_context_t hctx, bufferlist *in, buffer return ret; std::string c = "test"; - bufferlist bl; + ceph::buffer::list bl; bl.append(c); // write to the object @@ -66,7 +66,7 @@ static int test_coverage_write(cls_method_context_t hctx, bufferlist *in, buffer * and get_val). It also removes the object after reading. */ -static int test_coverage_replay(cls_method_context_t hctx, bufferlist *in, bufferlist *out) +static int test_coverage_replay(cls_method_context_t hctx, ceph::buffer::list *in, ceph::buffer::list *out) { CLS_LOG(0, "reading already written object"); uint64_t size; @@ -75,7 +75,7 @@ static int test_coverage_replay(cls_method_context_t hctx, bufferlist *in, buffe if (ret < 0) return ret; - bufferlist bl; + ceph::buffer::list bl; // read the object entry ret = cls_cxx_read(hctx, 0, size, &bl); if (ret < 0)