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
fab5ce36
Commit
fab5ce36
authored
Sep 04, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
cc519ed7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
go/zodb/btree/btree.go.in
go/zodb/btree/btree.go.in
+2
-1
go/zodb/btree/ziobtree.go
go/zodb/btree/ziobtree.go
+2
-1
go/zodb/btree/zlobtree.go
go/zodb/btree/zlobtree.go
+2
-1
No files found.
go/zodb/btree/btree.go.in
View file @
fab5ce36
...
...
@@ -26,6 +26,7 @@ import (
pickle
"github.com/kisielk/og-rek"
"lab.nexedi.com/kirr/go123/xerr"
"lab.nexedi.com/kirr/neo/go/zodb"
"lab.nexedi.com/kirr/neo/go/zodb/internal/pickletools"
)
//
BTree
is
a
non
-
leaf
node
of
a
B
⁺
tree
.
...
...
@@ -273,7 +274,7 @@ func (b *bucketState) PySetState(pystate interface{}) (err error) {
xk := t[2*i]
v := t[2*i+1]
k, ok :=
xk.(int64) // XXX -> Xint64
k, ok :=
pickletools.Xint64(xk)
if !ok {
return fmt.Errorf("data: [%d]: key must be integer; got %T", i, xk)
}
...
...
go/zodb/btree/ziobtree.go
View file @
fab5ce36
...
...
@@ -28,6 +28,7 @@ import (
pickle
"github.com/kisielk/og-rek"
"lab.nexedi.com/kirr/go123/xerr"
"lab.nexedi.com/kirr/neo/go/zodb"
"lab.nexedi.com/kirr/neo/go/zodb/internal/pickletools"
)
// IOBTree is a non-leaf node of a B⁺ tree.
...
...
@@ -275,7 +276,7 @@ func (b *iobucketState) PySetState(pystate interface{}) (err error) {
xk
:=
t
[
2
*
i
]
v
:=
t
[
2
*
i
+
1
]
k
,
ok
:=
xk
.
(
int64
)
// XXX -> Xint64
k
,
ok
:=
pickletools
.
Xint64
(
xk
)
if
!
ok
{
return
fmt
.
Errorf
(
"data: [%d]: key must be integer; got %T"
,
i
,
xk
)
}
...
...
go/zodb/btree/zlobtree.go
View file @
fab5ce36
...
...
@@ -28,6 +28,7 @@ import (
pickle
"github.com/kisielk/og-rek"
"lab.nexedi.com/kirr/go123/xerr"
"lab.nexedi.com/kirr/neo/go/zodb"
"lab.nexedi.com/kirr/neo/go/zodb/internal/pickletools"
)
// LOBTree is a non-leaf node of a B⁺ tree.
...
...
@@ -275,7 +276,7 @@ func (b *lobucketState) PySetState(pystate interface{}) (err error) {
xk
:=
t
[
2
*
i
]
v
:=
t
[
2
*
i
+
1
]
k
,
ok
:=
xk
.
(
int64
)
// XXX -> Xint64
k
,
ok
:=
pickletools
.
Xint64
(
xk
)
if
!
ok
{
return
fmt
.
Errorf
(
"data: [%d]: key must be integer; got %T"
,
i
,
xk
)
}
...
...
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