forked from robhanlon22/p551-assignment3
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved the structs into PaxosRole so that they can be shared by all, r…
…ather than redefined in each. Also added 'require' goodness to RPCExporter and Supervisor. Also added replica ids to supervisor for (potentially) easier interaction in client. Last time I hadn't git add'd them, and this time I did, so there.
- Loading branch information
Daniel Otero
committed
Dec 14, 2009
1 parent
463fa92
commit 87ceb0c
Showing
5 changed files
with
38 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,4 @@ def request_accept(proposal) | |
end | ||
end | ||
end | ||
|
||
private | ||
Response = Struct.new :highest_accepted, :acceptor | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
class PaxosRole | ||
protected | ||
|
||
Response = Struct.new :highest_accepted, :acceptor | ||
Proposal = Struct.new :number, :value, :proposer | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters