Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mutable to with_lock and do_with
Fix the following compiling error scylla/seastar/core/do_with.hh:79:20: error: no match for call to ‘(const service::storage_service::run_with_write_api_lock(Func&&)::<lambda(service::storage_service&)> mutable [with Func = service::storage_service::decommission()::<lambda(service::storage_service&)>]::<lambda()>) ()’ return func(); ^ In file included from service/storage_service.cc:40:0: service/storage_service.hh:2590:99: note: candidate: service::storage_service::run_with_write_api_lock(Func&&)::<lambda(service::storage_service&)> mutable::<lambda()> mutable [with Func = service::storage_service::decommission()::<lambda(service::storage_service&)>] <near match> return with_lock(ss.api_lock().for_write(), [&ss, func = std::forward<Func>(func)] () mutable { ^ service/storage_service.hh:2590:99: note: passing ‘const service::storage_service::run_with_write_api_lock(Func&&)::<lambda(service::storage_service&)> mutable [with Func = service::storage_service::decommission()::<lambda(service::storage_service&)>]::<lambda()>*’ as ‘this’ argument discards qualifiers
- Loading branch information