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
2e0993ca
Commit
2e0993ca
authored
Sep 30, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
4dd7cf9c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
go/zodb/btree/btree.go.in
go/zodb/btree/btree.go.in
+2
-2
go/zodb/btree/ziobtree.go
go/zodb/btree/ziobtree.go
+2
-2
go/zodb/btree/zlobtree.go
go/zodb/btree/zlobtree.go
+2
-2
No files found.
go/zodb/btree/btree.go.in
View file @
2e0993ca
...
...
@@ -229,14 +229,14 @@ func (b *Bucket) get(key KEY) (interface{}, bool) {
type bucketState Bucket // hide state methods from public API
// DropState implements Stateful to discard bucket state.
// DropState implements
zodb.
Stateful to discard bucket state.
func (b *bucketState) DropState() {
b.next = nil
b.keys = nil
b.values = nil
}
// PySetState implements PyStateful to set bucket data from pystate.
// PySetState implements
zodb.
PyStateful to set bucket data from pystate.
func (b *bucketState) PySetState(pystate interface{}) (err error) {
t, ok := pystate.(pickle.Tuple)
if !ok {
...
...
go/zodb/btree/ziobtree.go
View file @
2e0993ca
...
...
@@ -231,14 +231,14 @@ func (b *IOBucket) get(key int32) (interface{}, bool) {
type
iobucketState
IOBucket
// hide state methods from public API
// DropState implements Stateful to discard bucket state.
// DropState implements
zodb.
Stateful to discard bucket state.
func
(
b
*
iobucketState
)
DropState
()
{
b
.
next
=
nil
b
.
keys
=
nil
b
.
values
=
nil
}
// PySetState implements PyStateful to set bucket data from pystate.
// PySetState implements
zodb.
PyStateful to set bucket data from pystate.
func
(
b
*
iobucketState
)
PySetState
(
pystate
interface
{})
(
err
error
)
{
t
,
ok
:=
pystate
.
(
pickle
.
Tuple
)
if
!
ok
{
...
...
go/zodb/btree/zlobtree.go
View file @
2e0993ca
...
...
@@ -231,14 +231,14 @@ func (b *LOBucket) get(key int64) (interface{}, bool) {
type
lobucketState
LOBucket
// hide state methods from public API
// DropState implements Stateful to discard bucket state.
// DropState implements
zodb.
Stateful to discard bucket state.
func
(
b
*
lobucketState
)
DropState
()
{
b
.
next
=
nil
b
.
keys
=
nil
b
.
values
=
nil
}
// PySetState implements PyStateful to set bucket data from pystate.
// PySetState implements
zodb.
PyStateful to set bucket data from pystate.
func
(
b
*
lobucketState
)
PySetState
(
pystate
interface
{})
(
err
error
)
{
t
,
ok
:=
pystate
.
(
pickle
.
Tuple
)
if
!
ok
{
...
...
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