mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-09-19 09:40:12 +00:00
NewServerTransferClass merged Verified and acked-rollback rows and sorted them by AckedAt only. On Windows time.Now() granularity is ~15.6ms, so MarkVerified and an immediately-following MarkRevertDelivered routinely share a timestamp. The stable sort then left the Verified candidate ahead of the rollback that is actually on disk and the agent was locked out on the next restart. Add transferID as a deterministic tiebreaker so the later rotation always wins.