Skip to content

Commit 95101f0

Browse files
committed
test/rgw/test_d4n_filter: remove unused captures
to silence warnings Signed-off-by: Ronen Friedman <[email protected]>
1 parent f484edf commit 95101f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/rgw/test_d4n_filter.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3160,7 +3160,7 @@ TEST_F(D4NFilterFixture, SimpleDeleteBeforeCleaning)
31603160

31613161
io.run_for(std::chrono::seconds(2)); // Allow cleaning cycle to complete
31623162

3163-
net::spawn(io, [this, &testName, &bucketName, &deleteMarker, &location] (net::yield_context yield) {
3163+
net::spawn(io, [this] (net::yield_context yield) {
31643164
dynamic_cast<rgw::d4n::LFUDAPolicy*>(d4nFilter->get_policy_driver()->get_cache_policy())->save_y(optional_yield{yield});
31653165

31663166
std::unique_ptr<rgw::sal::Object::ReadOp> read_op(objEnabled->get_read_op());
@@ -3420,7 +3420,7 @@ TEST_F(D4NFilterFixture, VersionedDeleteAfterCleaning)
34203420

34213421
io.run_for(std::chrono::seconds(2));
34223422

3423-
net::spawn(io, [this, &testName, &bucketName, &instances] (net::yield_context yield) {
3423+
net::spawn(io, [this] (net::yield_context yield) {
34243424
dynamic_cast<rgw::d4n::LFUDAPolicy*>(d4nFilter->get_policy_driver()->get_cache_policy())->save_y(optional_yield{yield});
34253425

34263426
/* TODO: Cleaning method removes head object, so delete_obj calls after a cleaning cycle will not find the head object and will immediately call the backend's delete_obj,

0 commit comments

Comments
 (0)