Fix lambda-coroutine fiasco in hint_endpoint_manager.cc
Found by copilot.
No issue was observed yet.
Fixes #27520
Closes scylladb/scylladb#27477
(cherry picked from commit 7bc59e93b2)
Closes scylladb/scylladb#27727
This commit is contained in:
committed by
Avi Kivity
parent
5db584a037
commit
3e4b6369f3
@@ -246,7 +246,7 @@ future<db::commitlog> hint_endpoint_manager::add_store() noexcept {
|
||||
// which is larger than the segment ID of the RP of the last written hint.
|
||||
cfg.base_segment_id = _last_written_rp.base_id();
|
||||
|
||||
return commitlog::create_commitlog(std::move(cfg)).then([this] (commitlog l) -> future<commitlog> {
|
||||
return commitlog::create_commitlog(std::move(cfg)).then([this] (this auto, commitlog l) -> future<commitlog> {
|
||||
// add_store() is triggered every time hint files are forcefully flushed to I/O (every hints_flush_period).
|
||||
// When this happens we want to refill _sender's segments only if it has finished with the segments he had before.
|
||||
if (_sender.have_segments()) {
|
||||
|
||||
Reference in New Issue
Block a user