]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: Remove unused lambda capture
authorAdam C. Emerson <aemerson@redhat.com>
Thu, 28 Feb 2019 17:00:49 +0000 (12:00 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 15 Mar 2019 18:52:47 +0000 (14:52 -0400)
They take up extra space and can prevent small-function optimizations,
depending on the function implementation.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/cls/rbd/cls_rbd.cc

index 3f58ec30ed44f0cd094513f26577ded14e5b8752..50f60e4f567caa415d7185bf7b30322e522f68b6 100644 (file)
@@ -1731,7 +1731,7 @@ int parent_get(cls_method_context_t hctx, bufferlist *in, bufferlist *out) {
       return r;
     } else if (r == -ENOENT) {
       // examine oldest snapshot to see if it has a denormalized parent
-      auto parent_lambda = [hctx, &parent](const cls_rbd_snap& snap_meta) {
+      auto parent_lambda = [&parent](const cls_rbd_snap& snap_meta) {
         if (snap_meta.parent.exists()) {
           parent = snap_meta.parent;
         }