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
9c4031b6
Commit
9c4031b6
authored
Jul 13, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
d09b80f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
go/zodb/storage/zeo/zeo.go
go/zodb/storage/zeo/zeo.go
+6
-9
No files found.
go/zodb/storage/zeo/zeo.go
View file @
9c4031b6
...
@@ -74,16 +74,13 @@ func (z *zeo) Sync(ctx context.Context) (head zodb.Tid, err error) {
...
@@ -74,16 +74,13 @@ func (z *zeo) Sync(ctx context.Context) (head zodb.Tid, err error) {
}
}
// Load implements zodb.IStorageDriver.
// Load implements zodb.IStorageDriver.
func
(
z
*
zeo
)
Load
(
ctx
context
.
Context
,
xid
zodb
.
Xid
)
(
*
mem
.
Buf
,
zodb
.
Tid
,
error
)
{
func
(
z
*
zeo
)
Load
(
ctx
context
.
Context
,
xid
zodb
.
Xid
)
(
buf
*
mem
.
Buf
,
serial
zodb
.
Tid
,
err
error
)
{
// defer func() ...
defer
func
()
{
buf
,
serial
,
err
:=
z
.
_Load
(
ctx
,
xid
)
if
err
!=
nil
{
if
err
!=
nil
{
err
=
&
zodb
.
OpError
{
URL
:
z
.
URL
(),
Op
:
"load"
,
Args
:
xid
,
Err
:
err
}
err
=
&
zodb
.
OpError
{
URL
:
z
.
URL
(),
Op
:
"load"
,
Args
:
xid
,
Err
:
err
}
}
}
}()
return
buf
,
serial
,
err
}
func
(
z
*
zeo
)
_Load
(
ctx
context
.
Context
,
xid
zodb
.
Xid
)
(
*
mem
.
Buf
,
zodb
.
Tid
,
error
)
{
rpc
:=
z
.
rpc
(
"loadBefore"
)
rpc
:=
z
.
rpc
(
"loadBefore"
)
enc
:=
z
.
link
.
enc
enc
:=
z
.
link
.
enc
xres
,
err
:=
rpc
.
call
(
ctx
,
enc
.
Oid
(
xid
.
Oid
),
enc
.
Tid
(
xid
.
At
+
1
))
// XXX at2Before
xres
,
err
:=
rpc
.
call
(
ctx
,
enc
.
Oid
(
xid
.
Oid
),
enc
.
Tid
(
xid
.
At
+
1
))
// XXX at2Before
...
...
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