Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
8
818f19p5
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Keleher
818f19p5
Commits
311a022b
Commit
311a022b
authored
5 years ago
by
keleher
Browse files
Options
Downloads
Patches
Plain Diff
auto
parent
d1de5a54
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+8
-5
8 additions, 5 deletions
README.md
with
8 additions
and
5 deletions
README.md
+
8
−
5
View file @
311a022b
...
...
@@ -62,17 +62,20 @@ executed. Execution of a `Cmd` means only that the log segment delimited is
added to
`ClientReply`
.
### The Log
The log will be a totally ordered list of strings, each in one of the following
three
formats:
The log will be a totally ordered list of strings, each in one of the following
four
formats:
```
string = <client id>,<transaction id>,w,<key>,<value>
string = <client id>,<transaction id>,r,<key>
string = <client id>,<transaction id>,commit
string = <client id>,<transaction id>,abort
```
A "client id" is something you make up in your input strings. For instance, you can be
running two instances of
`transactionalClient.go`
at the same time (both talking to
replica 0). The strings you type into each of the clients should have different client ids.
The first two record formats define reads and writes in the log, while the last is a commit record.
The first two formats define reads and writes in the log, while the last two are commit
and abort records.
A "client id" is something you make up in your input strings. For instance, if you are
running two instances of
`transactionalClient.go`
(both talking to
replica 0), you might type "1,1,w,k,v" into the first and "2,1,w,k,v" into the
second. These writes are in different transactions.
## Part 1: Serializable Transactions
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment