Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
raft: support safe readonly request #6275
@bdarnell All fixed except the context thing. I left it as "thinking". Now the heartbeat sends with the latest context. We also have a queue in the readonly struct. It will unblock all previous readonly requests when a read only request is unblocked in the middle of the queue. Applications can coalesce the heartbeat response at will. So use term, index to order the read only request seems to be unnecessary.