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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZEO
Commits
e9424316
Commit
e9424316
authored
Apr 18, 2002
by
Toby Dickenson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed dumb premature DECREF bug
parent
c57189e3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
src/Persistence/cPickleCache.c
src/Persistence/cPickleCache.c
+2
-2
src/ZODB/cPickleCache.c
src/ZODB/cPickleCache.c
+2
-2
src/persistent/cPickleCache.c
src/persistent/cPickleCache.c
+2
-2
No files found.
src/Persistence/cPickleCache.c
View file @
e9424316
...
@@ -88,7 +88,7 @@ process must skip such objects, rather than deactivating them.
...
@@ -88,7 +88,7 @@ process must skip such objects, rather than deactivating them.
static
char
cPickleCache_doc_string
[]
=
static
char
cPickleCache_doc_string
[]
=
"Defines the PickleCache used by ZODB Connection objects.
\n
"
"Defines the PickleCache used by ZODB Connection objects.
\n
"
"
\n
"
"
\n
"
"$Id: cPickleCache.c,v 1.6
2 2002/04/18 09:16:24
htrd Exp $
\n
"
;
"$Id: cPickleCache.c,v 1.6
3 2002/04/18 09:18:26
htrd Exp $
\n
"
;
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define UNLESS(E) if(!(E))
#define UNLESS(E) if(!(E))
...
@@ -834,12 +834,12 @@ cc_add_item(ccobject *self, PyObject *key, PyObject *v)
...
@@ -834,12 +834,12 @@ cc_add_item(ccobject *self, PyObject *key, PyObject *v)
jar
=
PyObject_GetAttr
(
v
,
py__p_jar
);
jar
=
PyObject_GetAttr
(
v
,
py__p_jar
);
if
(
jar
==
NULL
)
if
(
jar
==
NULL
)
return
-
1
;
return
-
1
;
Py_DECREF
(
jar
);
if
(
jar
==
Py_None
)
{
if
(
jar
==
Py_None
)
{
PyErr_SetString
(
PyExc_ValueError
,
PyErr_SetString
(
PyExc_ValueError
,
"Cached object jar missing"
);
"Cached object jar missing"
);
return
-
1
;
return
-
1
;
}
}
Py_DECREF
(
jar
);
object_again
=
object_from_oid
(
self
,
key
);
object_again
=
object_from_oid
(
self
,
key
);
if
(
object_again
)
{
if
(
object_again
)
{
...
...
src/ZODB/cPickleCache.c
View file @
e9424316
...
@@ -88,7 +88,7 @@ process must skip such objects, rather than deactivating them.
...
@@ -88,7 +88,7 @@ process must skip such objects, rather than deactivating them.
static
char
cPickleCache_doc_string
[]
=
static
char
cPickleCache_doc_string
[]
=
"Defines the PickleCache used by ZODB Connection objects.
\n
"
"Defines the PickleCache used by ZODB Connection objects.
\n
"
"
\n
"
"
\n
"
"$Id: cPickleCache.c,v 1.6
2 2002/04/18 09:16:24
htrd Exp $
\n
"
;
"$Id: cPickleCache.c,v 1.6
3 2002/04/18 09:18:26
htrd Exp $
\n
"
;
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define UNLESS(E) if(!(E))
#define UNLESS(E) if(!(E))
...
@@ -834,12 +834,12 @@ cc_add_item(ccobject *self, PyObject *key, PyObject *v)
...
@@ -834,12 +834,12 @@ cc_add_item(ccobject *self, PyObject *key, PyObject *v)
jar
=
PyObject_GetAttr
(
v
,
py__p_jar
);
jar
=
PyObject_GetAttr
(
v
,
py__p_jar
);
if
(
jar
==
NULL
)
if
(
jar
==
NULL
)
return
-
1
;
return
-
1
;
Py_DECREF
(
jar
);
if
(
jar
==
Py_None
)
{
if
(
jar
==
Py_None
)
{
PyErr_SetString
(
PyExc_ValueError
,
PyErr_SetString
(
PyExc_ValueError
,
"Cached object jar missing"
);
"Cached object jar missing"
);
return
-
1
;
return
-
1
;
}
}
Py_DECREF
(
jar
);
object_again
=
object_from_oid
(
self
,
key
);
object_again
=
object_from_oid
(
self
,
key
);
if
(
object_again
)
{
if
(
object_again
)
{
...
...
src/persistent/cPickleCache.c
View file @
e9424316
...
@@ -88,7 +88,7 @@ process must skip such objects, rather than deactivating them.
...
@@ -88,7 +88,7 @@ process must skip such objects, rather than deactivating them.
static
char
cPickleCache_doc_string
[]
=
static
char
cPickleCache_doc_string
[]
=
"Defines the PickleCache used by ZODB Connection objects.
\n
"
"Defines the PickleCache used by ZODB Connection objects.
\n
"
"
\n
"
"
\n
"
"$Id: cPickleCache.c,v 1.6
2 2002/04/18 09:16:24
htrd Exp $
\n
"
;
"$Id: cPickleCache.c,v 1.6
3 2002/04/18 09:18:26
htrd Exp $
\n
"
;
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define UNLESS(E) if(!(E))
#define UNLESS(E) if(!(E))
...
@@ -834,12 +834,12 @@ cc_add_item(ccobject *self, PyObject *key, PyObject *v)
...
@@ -834,12 +834,12 @@ cc_add_item(ccobject *self, PyObject *key, PyObject *v)
jar
=
PyObject_GetAttr
(
v
,
py__p_jar
);
jar
=
PyObject_GetAttr
(
v
,
py__p_jar
);
if
(
jar
==
NULL
)
if
(
jar
==
NULL
)
return
-
1
;
return
-
1
;
Py_DECREF
(
jar
);
if
(
jar
==
Py_None
)
{
if
(
jar
==
Py_None
)
{
PyErr_SetString
(
PyExc_ValueError
,
PyErr_SetString
(
PyExc_ValueError
,
"Cached object jar missing"
);
"Cached object jar missing"
);
return
-
1
;
return
-
1
;
}
}
Py_DECREF
(
jar
);
object_again
=
object_from_oid
(
self
,
key
);
object_again
=
object_from_oid
(
self
,
key
);
if
(
object_again
)
{
if
(
object_again
)
{
...
...
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