Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Kirill Smelkov
ZODB
Commits
c0b229a9
Commit
c0b229a9
authored
May 13, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve a comment.
parent
967e485d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
6 deletions
+24
-6
trunk/src/Persistence/cPersistence.c
trunk/src/Persistence/cPersistence.c
+8
-2
trunk/src/ZODB/cPersistence.c
trunk/src/ZODB/cPersistence.c
+8
-2
trunk/src/persistent/cPersistence.c
trunk/src/persistent/cPersistence.c
+8
-2
No files found.
trunk/src/Persistence/cPersistence.c
View file @
c0b229a9
...
...
@@ -14,7 +14,7 @@
static
char
cPersistence_doc_string
[]
=
"Defines Persistent mixin class for persistent objects.
\n
"
"
\n
"
"$Id: cPersistence.c,v 1.
69 2003/04/23 20:05:51
jeremy Exp $
\n
"
;
"$Id: cPersistence.c,v 1.
70 2003/05/13 22:58:37
jeremy Exp $
\n
"
;
#include "cPersistence.h"
...
...
@@ -192,7 +192,13 @@ ghostify(cPersistentObject *self)
self
->
ring
.
prev
=
NULL
;
self
->
ring
.
next
=
NULL
;
self
->
state
=
cPersistent_GHOST_STATE
;
/* self->ring held a reference to the object. */
/* We remove the reference to the just ghosted object that the ring
* holds. Note that the dictionary of oids->objects has an uncounted
* reference, so if the ring's reference was the only one, this frees
* the ghost object. Note further that the object's dealloc knows to
* inform the dictionary that it is going away.
*/
Py_DECREF
(
self
);
}
...
...
trunk/src/ZODB/cPersistence.c
View file @
c0b229a9
...
...
@@ -14,7 +14,7 @@
static
char
cPersistence_doc_string
[]
=
"Defines Persistent mixin class for persistent objects.
\n
"
"
\n
"
"$Id: cPersistence.c,v 1.
69 2003/04/23 20:05:51
jeremy Exp $
\n
"
;
"$Id: cPersistence.c,v 1.
70 2003/05/13 22:58:37
jeremy Exp $
\n
"
;
#include "cPersistence.h"
...
...
@@ -192,7 +192,13 @@ ghostify(cPersistentObject *self)
self
->
ring
.
prev
=
NULL
;
self
->
ring
.
next
=
NULL
;
self
->
state
=
cPersistent_GHOST_STATE
;
/* self->ring held a reference to the object. */
/* We remove the reference to the just ghosted object that the ring
* holds. Note that the dictionary of oids->objects has an uncounted
* reference, so if the ring's reference was the only one, this frees
* the ghost object. Note further that the object's dealloc knows to
* inform the dictionary that it is going away.
*/
Py_DECREF
(
self
);
}
...
...
trunk/src/persistent/cPersistence.c
View file @
c0b229a9
...
...
@@ -14,7 +14,7 @@
static
char
cPersistence_doc_string
[]
=
"Defines Persistent mixin class for persistent objects.
\n
"
"
\n
"
"$Id: cPersistence.c,v 1.
69 2003/04/23 20:05:51
jeremy Exp $
\n
"
;
"$Id: cPersistence.c,v 1.
70 2003/05/13 22:58:37
jeremy Exp $
\n
"
;
#include "cPersistence.h"
...
...
@@ -192,7 +192,13 @@ ghostify(cPersistentObject *self)
self
->
ring
.
prev
=
NULL
;
self
->
ring
.
next
=
NULL
;
self
->
state
=
cPersistent_GHOST_STATE
;
/* self->ring held a reference to the object. */
/* We remove the reference to the just ghosted object that the ring
* holds. Note that the dictionary of oids->objects has an uncounted
* reference, so if the ring's reference was the only one, this frees
* the ghost object. Note further that the object's dealloc knows to
* inform the dictionary that it is going away.
*/
Py_DECREF
(
self
);
}
...
...
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