Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
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