work.emplace(boost::asio::make_work_guard(context));
for (int i = 0; i < thread_count; i++) {
- threads.emplace_back([=]() noexcept {
+ threads.emplace_back([this]() noexcept {
// request warnings on synchronous librados calls in this thread
is_asio_thread = true;
// Have uncaught exceptions kill the process and give a
ldpp_dout(dpp, 20) << "starting metadata listing at " << start_marker << dendl;
// release the handle when scope exits
- auto g = make_scope_guard([=] { mgr->list_keys_complete(handle); });
+ auto g = make_scope_guard([=, this] { mgr->list_keys_complete(handle); });
do {
// get the next key and marker
ldpp_dout(dpp, 20) << "restarting metadata listing" << dendl;
// release the handle when scope exits
- auto g = make_scope_guard([=] { mgr->list_keys_complete(handle); });
+ auto g = make_scope_guard([=, this] { mgr->list_keys_complete(handle); });
do {
// get the next key and marker
r = mgr->list_keys_next(dpp, handle, 1, keys, &truncated);