Dawid Mędrek
Dawid Mędrek
One thing to keep in mind while reviewing this PR is `-Wdeprecated-declarations` seems to be enabled by default by GCC, at least according to executing `gcc -Q --help=W` on my...
Version 2: * Enable `-Wdeprecated` and `-Wno-error=deprecated` unconditionally. * Commit hash instead of the issue number in the commit message.
> Before I review the specific code, I want to ask whether we could use the standard C++ (C++14) classes `std::shared_lock` and `std::unique_lock`, instead of implementing our own classes with...
> std::shared_lock and std::unique_lock should work on any SharedLockable (see https://en.cppreference.com/w/cpp/named_req/SharedLockable). Doesn't our seastar::shared_mutex fit that constraint? If not, why not? What happens when you try? I don't think it...
> @dawmd yes, surely > > ``` > const auto lock = std::unique_lock(sm); > ``` > > would not work, but does something like this work? > > ``` >...
Version 3: * I forgot to coroutinize the tests I was adding. It's done now. * Some of the new tests were redundant as they were testing the same scenarios...
Version 4: * CI failures fixed: when the macro `SEASTAR_ENABLE_ALLOC_FAILURE_INJECTION` was resolved to 0, some of our functions didn't return or await anything causing compilation errors.
Version 5: * Turned the functions into function templates taking the mutex type as their parameter.
It's worth noting that among the deprecated functions there is `ares_fds`, which may crash the system (cf. https://c-ares.org/ares_fds.html#NOTES): > The select(2) call which takes the fd_set parameter has significant limitations...
Version 2: * Rebased the PR on top of the current master branch (because of C-ares errors regarding deprecated functions) * Added concepts imposing constraints on the types accepted by...