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
98c400d9
Commit
98c400d9
authored
Jul 30, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9596cf60
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
go/zodb/persistent.go
go/zodb/persistent.go
+4
-4
No files found.
go/zodb/persistent.go
View file @
98c400d9
...
@@ -167,7 +167,7 @@ type loadState struct {
...
@@ -167,7 +167,7 @@ type loadState struct {
err
error
err
error
}
}
// Ghostable is the interface describin in-RAM object who can release its in-RAM state.
// Ghostable is the interface describin
g
in-RAM object who can release its in-RAM state.
type
Ghostable
interface
{
type
Ghostable
interface
{
// DropState should discard in-RAM object state.
// DropState should discard in-RAM object state.
DropState
()
DropState
()
...
@@ -317,7 +317,7 @@ func (obj *Persistent) istate() Ghostable {
...
@@ -317,7 +317,7 @@ func (obj *Persistent) istate() Ghostable {
type
zclass
struct
{
type
zclass
struct
{
class
string
class
string
typ
reflect
.
Type
// application go type corresponding to class
typ
reflect
.
Type
// application go type corresponding to class
stateType
reflect
.
Type
// *typ and *stateType are convertible; *stateType provides Stat
uf
l & co.
stateType
reflect
.
Type
// *typ and *stateType are convertible; *stateType provides Stat
efu
l & co.
}
}
var
classTab
=
make
(
map
[
string
]
*
zclass
)
// {} class -> zclass
var
classTab
=
make
(
map
[
string
]
*
zclass
)
// {} class -> zclass
...
@@ -404,7 +404,7 @@ func RegisterClass(class string, typ, stateType reflect.Type) {
...
@@ -404,7 +404,7 @@ func RegisterClass(class string, typ, stateType reflect.Type) {
// newGhost creates new ghost object corresponding to class, oid and jar.
// newGhost creates new ghost object corresponding to class, oid and jar.
//
//
// returned object
s
's PJar is set to provided jar. However the object is not
// returned object's PJar is set to provided jar. However the object is not
// registered to jar in any way. The caller must complete created object
// registered to jar in any way. The caller must complete created object
// registration to jar by himself.
// registration to jar by himself.
func
newGhost
(
class
string
,
oid
Oid
,
jar
*
Connection
)
IPersistent
{
func
newGhost
(
class
string
,
oid
Oid
,
jar
*
Connection
)
IPersistent
{
...
@@ -427,7 +427,7 @@ func newGhost(class string, oid Oid, jar *Connection) IPersistent {
...
@@ -427,7 +427,7 @@ func newGhost(class string, oid Oid, jar *Connection) IPersistent {
return
base
.
instance
return
base
.
instance
}
}
// Broken objects are used to represen
d
ZODB objects with classes that were not
// Broken objects are used to represen
t
ZODB objects with classes that were not
// registered to zodb Go package.
// registered to zodb Go package.
//
//
// See RegisterClass for details.
// See RegisterClass for details.
...
...
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