Commit 1d8b1e10 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent a00f0010
...@@ -518,16 +518,16 @@ type Broken struct { ...@@ -518,16 +518,16 @@ type Broken struct {
} }
// XXX register (Broken, brokenState) ? // XXX register (Broken, brokenState) ?
var _ interface { Ghostable; Stateful} = (*brokenState)(nil)
type brokenState Broken // hide state methods from public API type brokenState Broken // hide state methods from public API
func (b *brokenState) DropState() { func (b *brokenState) DropState() {
b.state.XRelease() b.state.Release()
b.state = nil b.state = nil
} }
func (b *brokenState) GetState() *mem.Buf { func (b *brokenState) GetState() *mem.Buf {
// XXX ok?
b.state.Incref() b.state.Incref()
return b.state return b.state
} }
......
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