Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
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
Levin Zimmermann
neoppod
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
Hide 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
...
@@ -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
)
{
func
(
z
*
zeo
)
invalidateTransaction
(
arg
interface
{})
(
err
error
)
{
enc
:=
z
.
link
.
enc
enc
:=
z
.
link
.
enc
t
,
ok
:=
enc
.
asTuple
(
arg
)
t
,
ok
:=
enc
.
asTuple
(
arg
)
...
@@ -150,6 +150,7 @@ func (z *zeo) invalidateTransaction(arg interface{}) (err error) {
...
@@ -150,6 +150,7 @@ func (z *zeo) invalidateTransaction(arg interface{}) (err error) {
defer
z
.
at0Mu
.
Unlock
()
defer
z
.
at0Mu
.
Unlock
()
// queue initial events until .at0 is initalized after register
// 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
{
if
z
.
at0
==
0
{
z
.
eventq0
=
append
(
z
.
eventq0
,
event
)
z
.
eventq0
=
append
(
z
.
eventq0
,
event
)
return
nil
return
nil
...
@@ -467,6 +468,7 @@ func openByURL(ctx context.Context, u *url.URL, opt *zodb.DriverOptions) (_ zodb
...
@@ -467,6 +468,7 @@ func openByURL(ctx context.Context, u *url.URL, opt *zodb.DriverOptions) (_ zodb
func
(
z
*
zeo
)
Close
()
error
{
func
(
z
*
zeo
)
Close
()
error
{
err
:=
z
.
link
.
Close
()
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)?
if
z
.
watchq
!=
nil
{
// XXX -> into zlink.shutdown instead? (so it is closed after link is closed)?
close
(
z
.
watchq
)
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