Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefane Fermigier
neo
Commits
1f2194c7
Commit
1f2194c7
authored
7 years ago
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
e644777b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
+49
-0
go/neo/notes.txt
go/neo/notes.txt
+49
-0
No files found.
go/neo/notes.txt
0 → 100644
View file @
1f2194c7
Storage layout
--------------
meta/
data/
1 inbox/ (commit queues)
2 ? (data.fs)
3. packed/
Commit without deadlocks & master
---------------------------------
Nreplica=2
S1 S2
^` .' ^
| x |
|.' ` |
C1 C2
events order
(in parallel)
1a: C1 -> S1 (oid1)
1b: C2 -> S2 (oid1)
(in parallel)
2a: C2 -> S1 (oid2)
2b: C1 -> S2 (oid2)
would be deadlock.
Conflict:
oid1 S1 C1 C2
oid1 S2 C2 C1
who wins?
|
v
sort by (oid, S, Ci, Cj)
|
v
if conflict -> second C gets conflict error; first C succeeds.
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment