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
9373180a
Commit
9373180a
authored
Jul 14, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
d4706d1f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
go/zodb/storage/zeo/zeo.go
go/zodb/storage/zeo/zeo.go
+2
-2
No files found.
go/zodb/storage/zeo/zeo.go
View file @
9373180a
...
@@ -44,7 +44,7 @@ type zeo struct {
...
@@ -44,7 +44,7 @@ type zeo struct {
head
zodb
.
Tid
// last invalidation received from server
head
zodb
.
Tid
// last invalidation received from server
at0Mu
sync
.
Mutex
at0Mu
sync
.
Mutex
at0
zodb
.
Tid
// at0 obtained when initially connecting to server
at0
zodb
.
Tid
// at0 obtained when initially connecting to server
eventq0
[]
*
zodb
.
EventCommit
// buffer for initial mess
e
ages, until .at0 is initialized
eventq0
[]
*
zodb
.
EventCommit
// buffer for initial messages, until .at0 is initialized
// becomes ready when serve loop finishes
// becomes ready when serve loop finishes
serveWG
sync
.
WaitGroup
serveWG
sync
.
WaitGroup
...
@@ -159,7 +159,7 @@ func (z *zeo) invalidateTransaction(arg interface{}) (err error) {
...
@@ -159,7 +159,7 @@ func (z *zeo) invalidateTransaction(arg interface{}) (err error) {
z
.
at0Mu
.
Lock
()
z
.
at0Mu
.
Lock
()
defer
z
.
at0Mu
.
Unlock
()
defer
z
.
at0Mu
.
Unlock
()
// queue initial events until .at0 is initalized after register
// queue initial events until .at0 is init
i
alized after register
// queued events will be sent to watchq by zeo ctor after initializing .at0
// 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
)
...
...
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