]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #35127 from ronen-fr/scrub4
authorJason Dillaman <dillaman@redhat.com>
Tue, 19 May 2020 15:44:29 +0000 (11:44 -0400)
committerGitHub <noreply@github.com>
Tue, 19 May 2020 15:44:29 +0000 (11:44 -0400)
test/librbd, Crimson: remove some unused captures

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
1  2 
src/test/librbd/cache/test_mock_ParentImageCache.cc

index 8ee85acd762b3cd9f43893ced89ecb60dbfb3de2,d2455fc1951c0a6b2408da82cf4d266a599b0b36..4d9aa7d4f60edf4fa3747053f4dde9c8d404cca9
@@@ -133,9 -133,9 +133,9 @@@ class TestMockParentImageCache : publi
    void expect_io_object_dispatcher_register_state(MockParentImageCache& mparent_image_cache, 
                                                    int ret_val) {
      auto& expect = EXPECT_CALL((*(mparent_image_cache.get_image_ctx()->io_object_dispatcher)),
 -                               register_object_dispatch(_));
 +                               register_dispatch(_));
  
-         expect.WillOnce(WithArg<0>(Invoke([ret_val, &mparent_image_cache]
+         expect.WillOnce(WithArg<0>(Invoke([&mparent_image_cache]
                  (io::ObjectDispatchInterface* object_dispatch) {
            ASSERT_EQ(object_dispatch, &mparent_image_cache);
          })));