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
4512fec8
Commit
4512fec8
authored
Jul 13, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9c4031b6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
go/zodb/storage/zeo/zeo.go
go/zodb/storage/zeo/zeo.go
+3
-1
No files found.
go/zodb/storage/zeo/zeo.go
View file @
4512fec8
...
...
@@ -111,7 +111,7 @@ func (z *zeo) Iterate(ctx context.Context, tidMin, tidMax zodb.Tid) zodb.ITxnIte
}
// invalidateTransaction receives invalidations from server
// invalidateTransaction receives invalidations from server
.
func
(
z
*
zeo
)
invalidateTransaction
(
arg
interface
{})
(
err
error
)
{
enc
:=
z
.
link
.
enc
t
,
ok
:=
enc
.
asTuple
(
arg
)
...
...
@@ -150,6 +150,7 @@ func (z *zeo) invalidateTransaction(arg interface{}) (err error) {
defer
z
.
at0Mu
.
Unlock
()
// queue initial events until .at0 is initalized after register
// queued events will be sent to watchq by zeo ctor after initializing .at0
if
z
.
at0
==
0
{
z
.
eventq0
=
append
(
z
.
eventq0
,
event
)
return
nil
...
...
@@ -467,6 +468,7 @@ func openByURL(ctx context.Context, u *url.URL, opt *zodb.DriverOptions) (_ zodb
func
(
z
*
zeo
)
Close
()
error
{
err
:=
z
.
link
.
Close
()
// XXX move -> after wait for go serve
if
z
.
watchq
!=
nil
{
// XXX -> into zlink.shutdown instead? (so it is closed after link is closed)?
close
(
z
.
watchq
)
}
...
...
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