Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Incremental scheduler changes in support of parallel scheduler #70

Merged
merged 5 commits into from
Feb 15, 2017

Conversation

vaporos
Copy link
Contributor

@vaporos vaporos commented Feb 12, 2017

No description provided.

Returns: a set of transaction ids
"""
# A write operation must be preceded by:
# - The "enclosing writer", which is th writer at the address or
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/th/the/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in new commits.

# predecessor of the enclosing writer. However, with the current
# data structure we can not determine the difference between readers
# so we specify them all; this is mostly harmless as it will not change
# the eventual topological sort order.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this relevant per the removal of topological sort?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in new commits.

@jsmitchell jsmitchell self-requested a review February 14, 2017 19:04
@vaporos
Copy link
Contributor Author

vaporos commented Feb 14, 2017

Rebased without code modifications.

This implementation is more complete approach to determining the
predecessors from the tree.

Signed-off-by: Shawn T. Amundson <amundson@bitwise.io>
This tree has very specific behavior around predecessor dependency
calculations, so renaming to reflect that.  Also provides a name
for discussion that does not cause confusion with the state tree.

Signed-off-by: Shawn T. Amundson <amundson@bitwise.io>
The parallel scheduler has to determine this dependency calculation
dynamically and therefore this static sorter class is not of actual
use in determining the order of transactions.

Signed-off-by: Shawn T. Amundson <amundson@bitwise.io>
Fixes an exception where key_hash was not initialized but was used by
the return statement, in the case set_items was an empty list.

Signed-off-by: Shawn T. Amundson <amundson@bitwise.io>
Signed-off-by: Shawn T. Amundson <amundson@bitwise.io>
@vaporos vaporos merged commit 7df40c6 into hyperledger-archives:master Feb 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants