Skip to content

Instantly share code, notes, and snippets.

@gilhooleyd
Created May 12, 2017 19:59
Show Gist options
  • Save gilhooleyd/73f6083b053b030a440a6562d1ad2406 to your computer and use it in GitHub Desktop.
Save gilhooleyd/73f6083b053b030a440a6562d1ad2406 to your computer and use it in GitHub Desktop.
Bayou server logs
type BayouServer struct {
...
...
...
// Stores committed ops: lower timestamps closer to head
CommitLog []LogEntry
// Stores uncommitted operations
TentativeLog []LogEntry
// Stores undo operations for all tentative ops
UndoLog []LogEntry
// Operations that conflict and fail to merge are stored here
ErrorLog []LogEntry
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment