jasonrogena / lightraft

Wrapper around SQLite that makes it distributed. This is an experiment, don't use in production
11 stars 2 forks source link

Fixs Issues Causing Command Proxying to Fail #13

Closed jasonrogena closed 3 years ago

jasonrogena commented 3 years ago

Fixes the following issues causing command proxying to fail:

  1. Register the previously unregistered ProxyService when the raft node is initialized.
  2. Use the same piece of code to process an incoming command in the master for when commands are received from a client connected directly to the master and for commands proxied from another node.
  3. Prevent the log entry state (in node.logEntryStates) corresponding to a log entry from being reset whenever node.addLogEntry is called.

Fixes #4

Signed-off-by: Jason Rogena jason@rogena.me