Skip to content
Snippets Groups Projects
Commit 23cddcd0 authored by Yaroslav Dynnikov's avatar Yaroslav Dynnikov
Browse files

feat: make uuids truly unique

Up to this patch `instance_uuid` and `replicaset_uuid` were generated
using name-based UUID v3. So all instances named `i1` in all clusters
had the same UUID.

With this patch UUIDs become random v4. Particular UUID values are
generated in two locations:

1. `start_boot` (src/lib.rs)
2. `handle_join_request_and_wait` -> `build_instance` (src/rpc/join.rs)

Function `Instance::new()` is removed in favor of explicit struct
construction.
parent cc41e539
No related branches found
No related tags found
1 merge request!1302feat: make uuids truly random
Pipeline #51482 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment