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
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) {
...
@@ -229,14 +229,14 @@ func (b *Bucket) get(key KEY) (interface{}, bool) {
type bucketState Bucket // hide state methods from public API
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() {
func (b *bucketState) DropState() {
b.next = nil
b.next = nil
b.keys = nil
b.keys = nil
b.values = 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) {
func (b *bucketState) PySetState(pystate interface{}) (err error) {
t, ok := pystate.(pickle.Tuple)
t, ok := pystate.(pickle.Tuple)
if !ok {
if !ok {
...
...
go/zodb/btree/ziobtree.go
View file @
2e0993ca
...
@@ -231,14 +231,14 @@ func (b *IOBucket) get(key int32) (interface{}, bool) {
...
@@ -231,14 +231,14 @@ func (b *IOBucket) get(key int32) (interface{}, bool) {
type
iobucketState
IOBucket
// hide state methods from public API
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
()
{
func
(
b
*
iobucketState
)
DropState
()
{
b
.
next
=
nil
b
.
next
=
nil
b
.
keys
=
nil
b
.
keys
=
nil
b
.
values
=
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
)
{
func
(
b
*
iobucketState
)
PySetState
(
pystate
interface
{})
(
err
error
)
{
t
,
ok
:=
pystate
.
(
pickle
.
Tuple
)
t
,
ok
:=
pystate
.
(
pickle
.
Tuple
)
if
!
ok
{
if
!
ok
{
...
...
go/zodb/btree/zlobtree.go
View file @
2e0993ca
...
@@ -231,14 +231,14 @@ func (b *LOBucket) get(key int64) (interface{}, bool) {
...
@@ -231,14 +231,14 @@ func (b *LOBucket) get(key int64) (interface{}, bool) {
type
lobucketState
LOBucket
// hide state methods from public API
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
()
{
func
(
b
*
lobucketState
)
DropState
()
{
b
.
next
=
nil
b
.
next
=
nil
b
.
keys
=
nil
b
.
keys
=
nil
b
.
values
=
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
)
{
func
(
b
*
lobucketState
)
PySetState
(
pystate
interface
{})
(
err
error
)
{
t
,
ok
:=
pystate
.
(
pickle
.
Tuple
)
t
,
ok
:=
pystate
.
(
pickle
.
Tuple
)
if
!
ok
{
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