Please sign in to comment.
Fix the logic that determines when the key value store must account f…
…or the term in reads and writes + In the last commit, I assumed that the cases where the key value store needs to write to its log and the cases where the term is not present in the command were the same. They are not. If a leader sends a follower server a command to catch up its log, that log has term numbers in it, but the follower server also needs to write those commands to its own log. So we really have three DIFFERENT cases: 1. Terms present, do not write—A server restarts and is catching up its in memory store from its own log 2. Terms present, DO write-A follower server is getting caught up from a leader server 3. Terms absent, DO write-A leader server receives requests to write to its logs from a client
- Loading branch information
Showing with 27 additions and 22 deletions.