Evgeny
e071a9e2f8
db_sync: fix test sync protocol isolation (add auto_sync flag, destroy order, test refactor)
...
- utun_instance: fix destroy order (topo_groups before conn_mgr to avoid UAF in topo_recovery)
- topo_recovery: add NULL guard for instance/ua in try_next
- db_sync_instance_add: add auto_sync flag (1=send INIT_SYNC, 0=quiet)
replaces separate _quiet variant, cleaner API
- db_sync_peer_set_state, db_sync_reinitiate: test-only peer control utilities
- test_db_sync: full rewrite — stable, isolated sync protocol testing
all 3 branches (peer_empty, hash_MATCH, divergence) tested without PUSH contamination
Phase 6 extended: triple merge + tail PUSH + mid PUSH cascade on star topology
runs in 1.4s, consistently passes 10/10
- db_sync_doc: updated protocol architecture description
- chatgui: update db_sync_instance_add call with auto_sync=1
2 months ago