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
a182bf14
Commit
a182bf14
authored
Jun 02, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
2aa8e196
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
1 deletion
+6
-1
go/zodb/btree/btree.go.in
go/zodb/btree/btree.go.in
+2
-0
go/zodb/btree/btree_test.go
go/zodb/btree/btree_test.go
+1
-0
go/zodb/btree/zlobtree.go
go/zodb/btree/zlobtree.go
+2
-0
go/zodb/zodb.go
go/zodb/zodb.go
+1
-1
No files found.
go/zodb/btree/btree.go.in
View file @
a182bf14
...
@@ -195,6 +195,8 @@ func (t *BTree) VGet(ctx context.Context, key KEY, visit func(node Node)) (_ int
...
@@ -195,6 +195,8 @@ func (t *BTree) VGet(ctx context.Context, key KEY, visit func(node Node)) (_ int
return key < t.data[j].key
return key < t.data[j].key
})
})
// FIXME panic index out of range (empty T without children;
// logically incorrect, but Restructure generated it once)
child := t.data[i].child
child := t.data[i].child
t.PDeactivate()
t.PDeactivate()
err = child.PActivate(ctx)
err = child.PActivate(ctx)
...
...
go/zodb/btree/btree_test.go
View file @
a182bf14
...
@@ -151,6 +151,7 @@ func TestBTree(t *testing.T) {
...
@@ -151,6 +151,7 @@ func TestBTree(t *testing.T) {
obj
:=
xobj
.
(
bmapping
)
obj
:=
xobj
.
(
bmapping
)
// XXX also verify all keys without value -> !ok
for
_
,
kv
:=
range
tt
.
itemv
{
for
_
,
kv
:=
range
tt
.
itemv
{
value
,
ok
,
err
:=
obj
.
Get
(
ctx
,
kv
.
key
)
value
,
ok
,
err
:=
obj
.
Get
(
ctx
,
kv
.
key
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
go/zodb/btree/zlobtree.go
View file @
a182bf14
...
@@ -197,6 +197,8 @@ func (t *LOBTree) VGet(ctx context.Context, key int64, visit func(node LONode))
...
@@ -197,6 +197,8 @@ func (t *LOBTree) VGet(ctx context.Context, key int64, visit func(node LONode))
return
key
<
t
.
data
[
j
]
.
key
return
key
<
t
.
data
[
j
]
.
key
})
})
// FIXME panic index out of range (empty T without children;
// logically incorrect, but Restructure generated it once)
child
:=
t
.
data
[
i
]
.
child
child
:=
t
.
data
[
i
]
.
child
t
.
PDeactivate
()
t
.
PDeactivate
()
err
=
child
.
PActivate
(
ctx
)
err
=
child
.
PActivate
(
ctx
)
...
...
go/zodb/zodb.go
View file @
a182bf14
...
@@ -328,7 +328,7 @@ type IStorage interface {
...
@@ -328,7 +328,7 @@ type IStorage interface {
Loader
Loader
Iterator
Iterator
// similar to IStorage
// similar to IStorage
Driver
// Sync syncs to storage and updates current view of it.
// Sync syncs to storage and updates current view of it.
//
//
...
...
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