Commits


John Grossman authored and Mike Lockwood committed 9684be35bf2
AAH: Fix a bug in the master election state machine. Client's of Masters who disappear before the client has processed even one timesync response should not enter the Ronin state. Since they have never synced to the old Master's timeline, by becoming Ronin they run the risk of defeating other new Ronin's in the master election, even though they don't have any idea what time it is on the old Master's timeline and therefore are unsuitable to serve as the new Master. Instead, they should transition to the Initial state, where other new Ronins (who do know what time it is) have the chance to step in and serve as master of the old timeline. If there are no other Ronin who can do the job, then the old timeline is dead and by transitioning to Initial, a new one will be generated. Change-Id: Iaa95313bfe68a971be2764e252ebf4b34313013d Signed-off-by: John Grossman <johngro@google.com>