]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
immutable_object_cache: Remove unused capture
authorAdam C. Emerson <aemerson@redhat.com>
Thu, 2 May 2019 16:41:48 +0000 (12:41 -0400)
committerKefu Chai <kchai@redhat.com>
Fri, 21 Jun 2019 03:38:55 +0000 (11:38 +0800)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/test/immutable_object_cache/test_DomainSocket.cc
src/tools/immutable_object_cache/CacheClient.cc

index 647c65f2e72a8eef33dc1ccff1b11935e4ef4ef1..dd9ad3bfd53e8d54db44a329dafb267f6b2735b5 100644 (file)
@@ -58,7 +58,7 @@ public:
       }
     }
 
-    auto ctx = new FunctionContext([this](bool reg) {
+    auto ctx = new FunctionContext([](bool reg) {
       ASSERT_TRUE(reg);
     });
     m_cache_client->register_client(ctx);
index 4af248f842e01d2e797be14eb8da28ad3f46f62c..02606b81e0cfd931f06e33de4d180471207190de 100644 (file)
@@ -244,7 +244,7 @@ namespace immutable_obj_cache {
     }
 
     ceph_assert(current_request != nullptr);
-    auto process_reply = new FunctionContext([this, current_request, reply]
+    auto process_reply = new FunctionContext([current_request, reply]
       (bool dedicated) {
        if (dedicated) {
          // dedicated thrad to execute this context.