Commit 2e0993ca authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 4dd7cf9c
...@@ -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 {
......
...@@ -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 {
......
...@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment