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
18f5f402
Commit
18f5f402
authored
Mar 10, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
077c4651
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
go/neo/t/tzodb.go
go/neo/t/tzodb.go
+3
-3
No files found.
go/neo/t/tzodb.go
View file @
18f5f402
...
...
@@ -144,7 +144,7 @@ func zhashMain(argv []string) {
func
zhash
(
ctx
context
.
Context
,
url
string
,
h
hasher
,
useprefetch
bool
,
bench
,
check
string
)
(
err
error
)
{
defer
task
.
Running
(
&
ctx
,
"zhash"
)(
&
err
)
stor
,
err
:=
zodb
.
Open
Storage
(
ctx
,
url
,
&
zodb
.
OpenOptions
{
ReadOnly
:
true
})
stor
,
err
:=
zodb
.
Open
(
ctx
,
url
,
&
zodb
.
OpenOptions
{
ReadOnly
:
true
})
if
err
!=
nil
{
return
err
}
...
...
@@ -395,7 +395,7 @@ func zwrkPreconnect(ctx context.Context, url string, at zodb.Tid, nwrk int) (_ [
ReadOnly
:
true
,
NoCache
:
true
,
}
stor
,
err
:=
zodb
.
Open
Storage
(
ctx
,
url
,
&
opts
)
stor
,
err
:=
zodb
.
Open
(
ctx
,
url
,
&
opts
)
if
err
!=
nil
{
return
err
}
...
...
@@ -444,7 +444,7 @@ func zwrkPreconnect(ctx context.Context, url string, at zodb.Tid, nwrk int) (_ [
func
zwrkPrepare
(
ctx
context
.
Context
,
url
string
,
h
hasher
,
check
string
)
(
at
zodb
.
Tid
,
objcheckv
[]
uint32
,
err
error
)
{
defer
task
.
Running
(
&
ctx
,
"zwrk/prepare"
)(
&
err
)
stor
,
err
:=
zodb
.
Open
Storage
(
ctx
,
url
,
&
zodb
.
OpenOptions
{
ReadOnly
:
true
})
stor
,
err
:=
zodb
.
Open
(
ctx
,
url
,
&
zodb
.
OpenOptions
{
ReadOnly
:
true
})
if
err
!=
nil
{
return
0
,
nil
,
err
}
...
...
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