Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
5ebd8119
Commit
5ebd8119
authored
Apr 06, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
911d74d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
wcfs/zblk.go
wcfs/zblk.go
+7
-8
No files found.
wcfs/zblk.go
View file @
5ebd8119
...
...
@@ -142,7 +142,7 @@ type ZBlk0 struct {
zblkInΔFtail
zodb
.
Persistent
//
XXX
py source uses bytes(buf) but on python2 it still results in str
//
NOTE
py source uses bytes(buf) but on python2 it still results in str
blkdata
string
}
...
...
@@ -162,15 +162,14 @@ func (zb *zBlk0State) PySetState(pystate interface{}) error {
return
fmt
.
Errorf
(
"expect str; got %s"
,
typeOf
(
pystate
))
}
//log.Printf("ZBlk0.PySetState #%d", len(blkdata))
zb
.
blkdata
=
blkdata
return
nil
}
func
(
zb
*
ZBlk0
)
loadBlkData
(
ctx
context
.
Context
)
(
[]
byte
,
zodb
.
Tid
,
error
)
{
// XXX err ctx
func
(
zb
*
ZBlk0
)
loadBlkData
(
ctx
context
.
Context
)
(
_
[]
byte
,
_
zodb
.
Tid
,
err
error
)
{
defer
xerr
.
Contextf
(
&
err
,
"ZBlk0(%s): loadBlkData"
,
zb
.
POid
())
err
:
=
zb
.
PActivate
(
ctx
)
err
=
zb
.
PActivate
(
ctx
)
if
err
!=
nil
{
return
nil
,
0
,
err
}
...
...
@@ -239,10 +238,10 @@ func (zb *zBlk1State) PySetState(pystate interface{}) error {
return
nil
}
func
(
zb
*
ZBlk1
)
loadBlkData
(
ctx
context
.
Context
)
(
[]
byte
,
zodb
.
Tid
,
error
)
{
// XXX errctx
func
(
zb
*
ZBlk1
)
loadBlkData
(
ctx
context
.
Context
)
(
_
[]
byte
,
_
zodb
.
Tid
,
err
error
)
{
defer
xerr
.
Contextf
(
&
err
,
"ZBlk1(%s): loadBlkData"
,
zb
.
POid
())
err
:
=
zb
.
PActivate
(
ctx
)
err
=
zb
.
PActivate
(
ctx
)
if
err
!=
nil
{
return
nil
,
0
,
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