mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-28 12:17:02 +00:00
Define a bunch of clear_gently methods that asynchronously clear the contents of containers and allow yielding. This replaces clear_gently(std::list<T>&) used by row level repair by a more generic template implementation. Note that we do not use coroutines in this patch to facilitate backporting to releases that do not support coroutines and since a miscompilation bug was hit with clang++ 11 when attempting to coroutinize this patch (see https://bugs.llvm.org/show_bug.cgi?id=50345). Test: stall_free_test(debug) Signed-off-by: Benny Halevy <bhalevy@scylladb.com>