Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
bef5af54
Commit
bef5af54
authored
Mar 02, 2004
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call _p_invalidate() instead of indirecting through _p_changed.
parent
a2acdc03
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
src/persistent/cPickleCache.c
src/persistent/cPickleCache.c
+23
-2
No files found.
src/persistent/cPickleCache.c
View file @
bef5af54
...
...
@@ -90,7 +90,7 @@ process must skip such objects, rather than deactivating them.
static
char
cPickleCache_doc_string
[]
=
"Defines the PickleCache used by ZODB Connection objects.
\n
"
"
\n
"
"$Id: cPickleCache.c,v 1.9
0 2004/03/02 15:37:38
jeremy Exp $
\n
"
;
"$Id: cPickleCache.c,v 1.9
1 2004/03/02 22:13:54
jeremy Exp $
\n
"
;
#define DONT_USE_CPERSISTENCECAPI
#include "cPersistence.h"
...
...
@@ -311,8 +311,20 @@ cc_minimize(ccobject *self, PyObject *args)
static
void
_invalidate
(
ccobject
*
self
,
PyObject
*
key
)
{
static
PyObject
*
_p_invalidate
;
PyObject
*
v
=
PyDict_GetItem
(
self
->
data
,
key
);
if
(
!
_p_invalidate
)
{
_p_invalidate
=
PyString_InternFromString
(
"_p_invalidate"
);
if
(
!
_p_invalidate
)
{
/* It doesn't make any sense to ignore this error, but
the caller ignores all errors.
*/
PyErr_Clear
();
return
;
}
}
if
(
!
v
)
return
;
if
(
PyType_Check
(
v
))
{
...
...
@@ -336,7 +348,16 @@ _invalidate(ccobject *self, PyObject *key)
PyErr_Clear
();
}
}
else
{
if
(
PyObject_DelAttr
(
v
,
py__p_changed
)
<
0
)
PyObject
*
meth
,
*
err
;
meth
=
PyObject_GetAttr
(
v
,
_p_invalidate
);
if
(
!
meth
)
{
PyErr_Clear
();
return
;
}
err
=
PyObject_CallObject
(
meth
,
NULL
);
Py_DECREF
(
meth
);
if
(
!
err
)
PyErr_Clear
();
}
}
...
...
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