mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-01 13:45:53 +00:00
The second logger.debug() call accesses ack2_msg after it was moved
via std::move() in the co_await send_gossip_digest_ack2 call.
This is undefined behavior.
Fix by formatting ack2_msg to a string before the move, then using
that cached string in both debug log calls.
Fixes: https://scylladb.atlassian.net/browse/SCYLLADB-1778
Closes scylladb/scylladb#29227
(cherry picked from commit 93722f2c89)
Closes scylladb/scylladb#29710