Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
neo
Commits
f8bd9308
Commit
f8bd9308
authored
6 years ago
by
Kirill Smelkov
Browse files
Options
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 {
func
(
db
*
DB
)
headWait
(
ctx
context
.
Context
,
at
Tid
)
(
err
error
)
{
defer
xerr
.
Contextf
(
&
err
,
"wait head ≥ %s"
,
at
)
db
.
mu
.
Lock
()
// XXX check if db is already down -> error even if at is under coverage?
// XXX under mu - ok?
// check if db is already down -> error even if at is under coverage
if
ready
(
db
.
down
)
{
return
db
.
downErr
}
db
.
mu
.
Lock
()
// we already have the coverage
if
at
<=
db
.
δtail
.
Head
()
{
db
.
mu
.
Unlock
()
return
nil
// we already have the coverage
return
nil
}
// we have some δtail coverage, but at is ahead of that.
...
...
This diff is collapsed.
Click to expand it.
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