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
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
1a42eccf
Commit
1a42eccf
authored
Mar 26, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
51e0d65d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
go/zodb/storage/demo/demo.go
go/zodb/storage/demo/demo.go
+2
-2
No files found.
go/zodb/storage/demo/demo.go
View file @
1a42eccf
...
@@ -371,7 +371,7 @@ func openByURL(ctx context.Context, u *url.URL, opt *zodb.DriverOptions) (_ zodb
...
@@ -371,7 +371,7 @@ func openByURL(ctx context.Context, u *url.URL, opt *zodb.DriverOptions) (_ zodb
// verify that either
// verify that either
// - δ is all empty (just created), or
// - δ is all empty (just created), or
// - all δ transactions come strictly after base.
// - all δ transactions come strictly after base.
Head .
at0
:=
baseAt0
at0
:=
baseAt0
var
δEventq0
[]
zodb
.
Event
var
δEventq0
[]
zodb
.
Event
if
δAt0
!=
0
{
if
δAt0
!=
0
{
...
@@ -402,7 +402,6 @@ func openByURL(ctx context.Context, u *url.URL, opt *zodb.DriverOptions) (_ zodb
...
@@ -402,7 +402,6 @@ func openByURL(ctx context.Context, u *url.URL, opt *zodb.DriverOptions) (_ zodb
// verify δ
// verify δ
iδ
:=
δ
.
Iterate
(
ctx
,
0
,
baseAt0
)
iδ
:=
δ
.
Iterate
(
ctx
,
0
,
baseAt0
)
δtxni
,
_
,
err
:=
iδ
.
NextTxn
(
ctx
)
δtxni
,
_
,
err
:=
iδ
.
NextTxn
(
ctx
)
// TODO iδ.Close()
switch
{
switch
{
case
err
==
io
.
EOF
:
case
err
==
io
.
EOF
:
err
=
nil
// ok - nothing in δ
err
=
nil
// ok - nothing in δ
...
@@ -411,6 +410,7 @@ func openByURL(ctx context.Context, u *url.URL, opt *zodb.DriverOptions) (_ zodb
...
@@ -411,6 +410,7 @@ func openByURL(ctx context.Context, u *url.URL, opt *zodb.DriverOptions) (_ zodb
// there is a δ transaction ∈ [δAt0, baseAt0)
// there is a δ transaction ∈ [δAt0, baseAt0)
err
=
fmt
.
Errorf
(
"base overlaps with δ: base.head=%s δ.tail=%s"
,
baseAt0
,
δtxni
.
Tid
)
err
=
fmt
.
Errorf
(
"base overlaps with δ: base.head=%s δ.tail=%s"
,
baseAt0
,
δtxni
.
Tid
)
}
}
// TODO iδ.Close()
close
(
δq0Stop
)
close
(
δq0Stop
)
<-
δq0Done
<-
δq0Done
...
...
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