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
4b06a39e
Commit
4b06a39e
authored
Feb 19, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
fbbc56ce
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
go/zodb/open.go
go/zodb/open.go
+1
-1
go/zodb/zodb.go
go/zodb/zodb.go
+3
-5
No files found.
go/zodb/open.go
View file @
4b06a39e
...
...
@@ -268,7 +268,7 @@ func (s *storage) watcher() {
// if !↑ - stop the storage with error.
if
!
(
e
.
Tid
>
s
.
drvHead
)
{
errDown
=
fmt
.
Errorf
(
"%s: driver notified with δ.tid not ↑ (%s -> %s)"
,
"%s: driver
error:
notified with δ.tid not ↑ (%s -> %s)"
,
s
.
URL
(),
s
.
drvHead
,
e
.
Tid
)
event
=
&
EventError
{
errDown
}
}
else
{
...
...
go/zodb/zodb.go
View file @
4b06a39e
...
...
@@ -467,12 +467,12 @@ type Watcher interface {
// sent, where at₀ is database head that was current when AddWatch call
// was made.
//
// Once registered, watchq must be read until
DelWatch call.
// Not doing so will stuck whole storage.
// Once registered, watchq must be read until
l it is closed or until
//
DelWatch call.
Not doing so will stuck whole storage.
//
// Registered watchq are closed when the database storage is closed.
//
// Multiple AddWatch calls with the same watchq register watchq only once.
XXX
// Multiple AddWatch calls with the same watchq register watchq only once.
AddWatch
(
watchq
chan
<-
Event
)
(
at0
Tid
)
// DelWatch unregisters watchq from being notified of database changes.
...
...
@@ -495,8 +495,6 @@ type Watcher interface {
// }
//
// DelWatch is noop if watchq was not registered.
//
// XXX also return curent head?
DelWatch
(
watchq
chan
<-
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