mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-02 13:06:57 +00:00
Previously, when node A replaced node B, it would obtain B's generation timestamp from its application state (gossiped by other nodes) and start gossiping it immediately on bootstrap. But that's not necessary: 1. if this is the timestamp of the last (current) generation, we would obtain it from other nodes anyway (every node gossips the last known timestamp), 2. if this is the timestamp of an earlier generation, we would forget it immediately and start gossiping the last timestamp (obtained from other nodes). This commit simplifies the bootstrap code (in node-replace case) a bit: the replacing node no longer attempts to retrieve the CDC generation timestamp from the node being replaced.