Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring of clocksi_interactive_coord #384

Merged
merged 2 commits into from
Sep 9, 2019

Conversation

peterzeller
Copy link
Member

  • new state wait_for_start_transaction
  • no work done in init, instead all blocking is done when wait_for_start_transaction receives a start_tx message
  • the change above allows us to remove the 100 instances of clocksi_interactive_coord_worker_sup and directly start the clocksi_interactive_coord under the clocksi_interactive_coord_sup
  • added a new function prepare_done that is always executed befor beginning the
    commit phase
  • removed redundant match-expressions
  • removed StayAlive (which was always set to false in production)

Old state graph:

graph_old
graph_old.pdf

After this PR:

graph_new
graph_new.pdf

- new state wait_for_start_transaction
- no work done in init, instead all blocking is done when wait_for_start_transaction receives a start_tx message
- the change above allows us to remove the 100 instances of clocksi_interactive_coord_worker_sup and directly start the clocksi_interactive_coord under the clocksi_interactive_coord_sup
- added a new function prepare_done that is always executed befor beginning the
commit phase
- removed redundant match-expressions
- removed StayAlive (which was always set to false in production)
@bieniusa bieniusa merged commit b668558 into master Sep 9, 2019
@bieniusa bieniusa deleted the clocksi_interactive_coord_refactor branch September 9, 2019 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants