Commit efdb7a80 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 6463acfc
...@@ -14,6 +14,14 @@ ...@@ -14,6 +14,14 @@
package zodb package zodb
// application-level database connection. // application-level database connection.
import (
"context"
"sync"
"lab.nexedi.com/kirr/go123/mem"
"lab.nexedi.com/kirr/neo/go/zodb/internal/weak"
)
// Connection represents a view of ZODB database. // Connection represents a view of ZODB database.
// //
// The view is representing state of ZODB objects as of `at` transaction. // The view is representing state of ZODB objects as of `at` transaction.
......
...@@ -19,7 +19,6 @@ import ( ...@@ -19,7 +19,6 @@ import (
"sync" "sync"
"lab.nexedi.com/kirr/go123/mem" "lab.nexedi.com/kirr/go123/mem"
"lab.nexedi.com/kirr/neo/go/zodb/internal/weak"
) )
// IPersistent is the interface that every in-RAM object representing any database object implements. // IPersistent is the interface that every in-RAM object representing any database object implements.
......
...@@ -164,7 +164,7 @@ func (conn *Connection) Get(ctx context.Context, oid Oid) (IPyPersistent, error) ...@@ -164,7 +164,7 @@ func (conn *Connection) Get(ctx context.Context, oid Oid) (IPyPersistent, error)
// object was already there in objtab. // object was already there in objtab.
if xobj != nil { if xobj != nil {
return xobj.(IPyPersistent), nil return xobj.(IPyPersistent), nil // XXX if just IPersistent ?
} }
// object is not there in objtab - raw load it, get its class -> get(pyclass, oid) // object is not there in objtab - raw load it, get its class -> get(pyclass, oid)
......
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