Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db: system_distributed_keyspace: use current time when creating mutat…
…ions in `start()` When creating internal distributed tables in `system_distributed_keyspace::start()`, hardcoded timestamps were used. This was to protect against issue scylladb#2129, where nodes would start without synchronizing schema with the existing cluster, creating the tables again, which would override any manual user changes to these tables. The solution was to use small timestamps (like api::min_timestamp) - the user-created schema mutations would always 'win' (because when they were created, they used current time). This workaround is no longer necessary: when nodes start they always have to sync schema with existing nodes; we also don't allow bootstrapping nodes in parallel. When schema changes are performed by Raft group 0, certain constraints are placed on the timestamps used for mutations. For this we'll need to be able to use timestamps which are generated based on current time.
- Loading branch information