Commit 4ad82b28 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent e535113c
...@@ -394,8 +394,7 @@ func newGhost(class string, oid Oid, jar *Connection) IPersistent { ...@@ -394,8 +394,7 @@ func newGhost(class string, oid Oid, jar *Connection) IPersistent {
return persistentInit(xpobj, zc, jar, oid, InvalidTid, GHOST) return persistentInit(xpobj, zc, jar, oid, InvalidTid, GHOST)
} }
// persistentInit inits Persistent embedded into an object // persistentInit inits Persistent embedded into an object and returns .instance .
// and returns .instance .
func persistentInit(xpobj reflect.Value, zc *zclass, jar *Connection, oid Oid, serial Tid, state ObjectState) IPersistent { func persistentInit(xpobj reflect.Value, zc *zclass, jar *Connection, oid Oid, serial Tid, state ObjectState) IPersistent {
xobj := xpobj.Elem() // typ xobj := xpobj.Elem() // typ
pbase := xobj.FieldByName("Persistent").Addr().Interface().(*Persistent) pbase := xobj.FieldByName("Persistent").Addr().Interface().(*Persistent)
......
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