return segment_manager.read(
          {start.segment, start.offset + (segment_off_t)block_size},
          header.mdlength - block_size).safe_then(
-           [this, header=std::move(header), bl=std::move(bl)](
+           [header=std::move(header), bl=std::move(bl)](
              auto &&bptail) mutable {
              bl.push_back(bptail);
              return read_record_metadata_ret(
 
 
 seastar::future<Ref<PG>> OSD::load_pg(spg_t pgid)
 {
-  return seastar::do_with(PGMeta(store.get(), pgid), [this, pgid] (auto& pg_meta) {
+  return seastar::do_with(PGMeta(store.get(), pgid), [] (auto& pg_meta) {
     return pg_meta.get_epoch();
   }).then([this](epoch_t e) {
     return get_map(e);
 
         return shard_services.start_operation<PGAdvanceMap>(
           *this, pg, pg->get_osdmap_epoch(),
-          osdmap->get_epoch(), std::move(rctx), true).second.then([pg] {
+          osdmap->get_epoch(), std::move(rctx), true).second.then([pg=pg] {
             return seastar::make_ready_future<Ref<PG>>(pg);
         });
       });
 
 
 seastar::future<> PG::read_state(crimson::os::FuturizedStore* store)
 {
-  return seastar::do_with(PGMeta(store, pgid), [this, store] (auto& pg_meta) {
+  return seastar::do_with(PGMeta(store, pgid), [] (auto& pg_meta) {
     return pg_meta.load();
   }).then([this, store](pg_info_t pg_info, PastIntervals past_intervals) {
     return peering_state.init_from_disk_state(
     reply->set_enoent_reply_versions(peering_state.get_info().last_update,
                                     peering_state.get_info().last_user_version);
     return seastar::make_ready_future<Ref<MOSDOpReply>>(std::move(reply));
-  })).handle_exception_type([=,&oid](const crimson::osd::error& e) {
+  })).handle_exception_type([=](const crimson::osd::error& e) {
     // we need this handler because throwing path which aren't errorated yet.
     logger().debug(
       "do_osd_ops: {} - object {} got unhandled exception {} ({})",