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
f8bd9308
Commit
f8bd9308
authored
Mar 06, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b1aa6178
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
go/zodb/db.go
go/zodb/db.go
+5
-5
No files found.
go/zodb/db.go
View file @
f8bd9308
...
@@ -290,17 +290,17 @@ type hwaiter struct {
...
@@ -290,17 +290,17 @@ type hwaiter struct {
func
(
db
*
DB
)
headWait
(
ctx
context
.
Context
,
at
Tid
)
(
err
error
)
{
func
(
db
*
DB
)
headWait
(
ctx
context
.
Context
,
at
Tid
)
(
err
error
)
{
defer
xerr
.
Contextf
(
&
err
,
"wait head ≥ %s"
,
at
)
defer
xerr
.
Contextf
(
&
err
,
"wait head ≥ %s"
,
at
)
db
.
mu
.
Lock
()
// check if db is already down -> error even if at is under coverage
// XXX check if db is already down -> error even if at is under coverage?
// XXX under mu - ok?
if
ready
(
db
.
down
)
{
if
ready
(
db
.
down
)
{
return
db
.
downErr
return
db
.
downErr
}
}
db
.
mu
.
Lock
()
// we already have the coverage
if
at
<=
db
.
δtail
.
Head
()
{
if
at
<=
db
.
δtail
.
Head
()
{
db
.
mu
.
Unlock
()
db
.
mu
.
Unlock
()
return
nil
// we already have the coverage
return
nil
}
}
// we have some δtail coverage, but at is ahead of that.
// we have some δtail coverage, but at is ahead of that.
...
...
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