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
f51703e6
Commit
f51703e6
authored
Jul 27, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed _p___reinit__ to _p_deactivate.
parent
8f1a0bc5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
18 deletions
+27
-18
src/Persistence/cPickleCache.c
src/Persistence/cPickleCache.c
+9
-6
src/ZODB/cPickleCache.c
src/ZODB/cPickleCache.c
+9
-6
src/persistent/cPickleCache.c
src/persistent/cPickleCache.c
+9
-6
No files found.
src/Persistence/cPickleCache.c
View file @
f51703e6
/*
/*
$Id: cPickleCache.c,v 1.1
4 1998/02/05 14:43:10
jim Exp $
$Id: cPickleCache.c,v 1.1
5 1998/07/27 13:09:03
jim Exp $
C implementation of a pickle jar cache.
C implementation of a pickle jar cache.
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
rights reserved.
rights reserved.
***************************************************************************/
***************************************************************************/
static
char
*
what_string
=
"$Id: cPickleCache.c,v 1.1
4 1998/02/05 14:43:10
jim Exp $"
;
static
char
*
what_string
=
"$Id: cPickleCache.c,v 1.1
5 1998/07/27 13:09:03
jim Exp $"
;
#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))
...
@@ -25,7 +25,7 @@ static char *what_string = "$Id: cPickleCache.c,v 1.14 1998/02/05 14:43:10 jim E
...
@@ -25,7 +25,7 @@ static char *what_string = "$Id: cPickleCache.c,v 1.14 1998/02/05 14:43:10 jim E
#undef Py_FindMethod
#undef Py_FindMethod
static
PyObject
*
py_reload
,
*
py__p_jar
,
*
py__p_atime
,
*
py__p_
__reinit__
;
static
PyObject
*
py_reload
,
*
py__p_jar
,
*
py__p_atime
,
*
py__p_
deactivate
;
/* Declarations for objects of type cCache */
/* Declarations for objects of type cCache */
...
@@ -103,7 +103,7 @@ gc_item(ccobject *self, PyObject *key, PyObject *v, time_t now, time_t dt)
...
@@ -103,7 +103,7 @@ gc_item(ccobject *self, PyObject *key, PyObject *v, time_t now, time_t dt)
if
(((
cPersistentObject
*
)
v
)
->
state
!=
if
(((
cPersistentObject
*
)
v
)
->
state
!=
cPersistent_UPTODATE_STATE
)
return
0
;
cPersistent_UPTODATE_STATE
)
return
0
;
self
->
sum_deac
++
;
self
->
sum_deac
++
;
if
(
key
=
PyObject_GetAttr
(
v
,
py__p_
__reinit__
))
if
(
key
=
PyObject_GetAttr
(
v
,
py__p_
deactivate
))
{
{
ASSIGN
(
key
,
PyObject_CallObject
(
key
,
NULL
));
ASSIGN
(
key
,
PyObject_CallObject
(
key
,
NULL
));
UNLESS
(
key
)
return
-
1
;
UNLESS
(
key
)
return
-
1
;
...
@@ -631,7 +631,7 @@ void
...
@@ -631,7 +631,7 @@ void
initcPickleCache
()
initcPickleCache
()
{
{
PyObject
*
m
,
*
d
;
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.1
4
$"
;
char
*
rev
=
"$Revision: 1.1
5
$"
;
Cctype
.
ob_type
=&
PyType_Type
;
Cctype
.
ob_type
=&
PyType_Type
;
...
@@ -648,7 +648,7 @@ initcPickleCache()
...
@@ -648,7 +648,7 @@ initcPickleCache()
py_reload
=
PyString_FromString
(
"reload"
);
py_reload
=
PyString_FromString
(
"reload"
);
py__p_jar
=
PyString_FromString
(
"_p_jar"
);
py__p_jar
=
PyString_FromString
(
"_p_jar"
);
py__p_atime
=
PyString_FromString
(
"_p_atime"
);
py__p_atime
=
PyString_FromString
(
"_p_atime"
);
py__p_
__reinit__
=
PyString_FromString
(
"_p___reinit__
"
);
py__p_
deactivate
=
PyString_FromString
(
"_p_deactivate
"
);
PyDict_SetItemString
(
d
,
"__version__"
,
PyDict_SetItemString
(
d
,
"__version__"
,
PyString_FromStringAndSize
(
rev
+
11
,
strlen
(
rev
+
11
)
-
2
));
PyString_FromStringAndSize
(
rev
+
11
,
strlen
(
rev
+
11
)
-
2
));
...
@@ -661,6 +661,9 @@ initcPickleCache()
...
@@ -661,6 +661,9 @@ initcPickleCache()
/******************************************************************************
/******************************************************************************
$Log: cPickleCache.c,v $
$Log: cPickleCache.c,v $
Revision 1.15 1998/07/27 13:09:03 jim
Changed _p___reinit__ to _p_deactivate.
Revision 1.14 1998/02/05 14:43:10 jim
Revision 1.14 1998/02/05 14:43:10 jim
Fixed bug in ibcremental gc method.
Fixed bug in ibcremental gc method.
...
...
src/ZODB/cPickleCache.c
View file @
f51703e6
/*
/*
$Id: cPickleCache.c,v 1.1
4 1998/02/05 14:43:10
jim Exp $
$Id: cPickleCache.c,v 1.1
5 1998/07/27 13:09:03
jim Exp $
C implementation of a pickle jar cache.
C implementation of a pickle jar cache.
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
rights reserved.
rights reserved.
***************************************************************************/
***************************************************************************/
static
char
*
what_string
=
"$Id: cPickleCache.c,v 1.1
4 1998/02/05 14:43:10
jim Exp $"
;
static
char
*
what_string
=
"$Id: cPickleCache.c,v 1.1
5 1998/07/27 13:09:03
jim Exp $"
;
#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))
...
@@ -25,7 +25,7 @@ static char *what_string = "$Id: cPickleCache.c,v 1.14 1998/02/05 14:43:10 jim E
...
@@ -25,7 +25,7 @@ static char *what_string = "$Id: cPickleCache.c,v 1.14 1998/02/05 14:43:10 jim E
#undef Py_FindMethod
#undef Py_FindMethod
static
PyObject
*
py_reload
,
*
py__p_jar
,
*
py__p_atime
,
*
py__p_
__reinit__
;
static
PyObject
*
py_reload
,
*
py__p_jar
,
*
py__p_atime
,
*
py__p_
deactivate
;
/* Declarations for objects of type cCache */
/* Declarations for objects of type cCache */
...
@@ -103,7 +103,7 @@ gc_item(ccobject *self, PyObject *key, PyObject *v, time_t now, time_t dt)
...
@@ -103,7 +103,7 @@ gc_item(ccobject *self, PyObject *key, PyObject *v, time_t now, time_t dt)
if
(((
cPersistentObject
*
)
v
)
->
state
!=
if
(((
cPersistentObject
*
)
v
)
->
state
!=
cPersistent_UPTODATE_STATE
)
return
0
;
cPersistent_UPTODATE_STATE
)
return
0
;
self
->
sum_deac
++
;
self
->
sum_deac
++
;
if
(
key
=
PyObject_GetAttr
(
v
,
py__p_
__reinit__
))
if
(
key
=
PyObject_GetAttr
(
v
,
py__p_
deactivate
))
{
{
ASSIGN
(
key
,
PyObject_CallObject
(
key
,
NULL
));
ASSIGN
(
key
,
PyObject_CallObject
(
key
,
NULL
));
UNLESS
(
key
)
return
-
1
;
UNLESS
(
key
)
return
-
1
;
...
@@ -631,7 +631,7 @@ void
...
@@ -631,7 +631,7 @@ void
initcPickleCache
()
initcPickleCache
()
{
{
PyObject
*
m
,
*
d
;
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.1
4
$"
;
char
*
rev
=
"$Revision: 1.1
5
$"
;
Cctype
.
ob_type
=&
PyType_Type
;
Cctype
.
ob_type
=&
PyType_Type
;
...
@@ -648,7 +648,7 @@ initcPickleCache()
...
@@ -648,7 +648,7 @@ initcPickleCache()
py_reload
=
PyString_FromString
(
"reload"
);
py_reload
=
PyString_FromString
(
"reload"
);
py__p_jar
=
PyString_FromString
(
"_p_jar"
);
py__p_jar
=
PyString_FromString
(
"_p_jar"
);
py__p_atime
=
PyString_FromString
(
"_p_atime"
);
py__p_atime
=
PyString_FromString
(
"_p_atime"
);
py__p_
__reinit__
=
PyString_FromString
(
"_p___reinit__
"
);
py__p_
deactivate
=
PyString_FromString
(
"_p_deactivate
"
);
PyDict_SetItemString
(
d
,
"__version__"
,
PyDict_SetItemString
(
d
,
"__version__"
,
PyString_FromStringAndSize
(
rev
+
11
,
strlen
(
rev
+
11
)
-
2
));
PyString_FromStringAndSize
(
rev
+
11
,
strlen
(
rev
+
11
)
-
2
));
...
@@ -661,6 +661,9 @@ initcPickleCache()
...
@@ -661,6 +661,9 @@ initcPickleCache()
/******************************************************************************
/******************************************************************************
$Log: cPickleCache.c,v $
$Log: cPickleCache.c,v $
Revision 1.15 1998/07/27 13:09:03 jim
Changed _p___reinit__ to _p_deactivate.
Revision 1.14 1998/02/05 14:43:10 jim
Revision 1.14 1998/02/05 14:43:10 jim
Fixed bug in ibcremental gc method.
Fixed bug in ibcremental gc method.
...
...
src/persistent/cPickleCache.c
View file @
f51703e6
/*
/*
$Id: cPickleCache.c,v 1.1
4 1998/02/05 14:43:10
jim Exp $
$Id: cPickleCache.c,v 1.1
5 1998/07/27 13:09:03
jim Exp $
C implementation of a pickle jar cache.
C implementation of a pickle jar cache.
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
rights reserved.
rights reserved.
***************************************************************************/
***************************************************************************/
static
char
*
what_string
=
"$Id: cPickleCache.c,v 1.1
4 1998/02/05 14:43:10
jim Exp $"
;
static
char
*
what_string
=
"$Id: cPickleCache.c,v 1.1
5 1998/07/27 13:09:03
jim Exp $"
;
#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))
...
@@ -25,7 +25,7 @@ static char *what_string = "$Id: cPickleCache.c,v 1.14 1998/02/05 14:43:10 jim E
...
@@ -25,7 +25,7 @@ static char *what_string = "$Id: cPickleCache.c,v 1.14 1998/02/05 14:43:10 jim E
#undef Py_FindMethod
#undef Py_FindMethod
static
PyObject
*
py_reload
,
*
py__p_jar
,
*
py__p_atime
,
*
py__p_
__reinit__
;
static
PyObject
*
py_reload
,
*
py__p_jar
,
*
py__p_atime
,
*
py__p_
deactivate
;
/* Declarations for objects of type cCache */
/* Declarations for objects of type cCache */
...
@@ -103,7 +103,7 @@ gc_item(ccobject *self, PyObject *key, PyObject *v, time_t now, time_t dt)
...
@@ -103,7 +103,7 @@ gc_item(ccobject *self, PyObject *key, PyObject *v, time_t now, time_t dt)
if
(((
cPersistentObject
*
)
v
)
->
state
!=
if
(((
cPersistentObject
*
)
v
)
->
state
!=
cPersistent_UPTODATE_STATE
)
return
0
;
cPersistent_UPTODATE_STATE
)
return
0
;
self
->
sum_deac
++
;
self
->
sum_deac
++
;
if
(
key
=
PyObject_GetAttr
(
v
,
py__p_
__reinit__
))
if
(
key
=
PyObject_GetAttr
(
v
,
py__p_
deactivate
))
{
{
ASSIGN
(
key
,
PyObject_CallObject
(
key
,
NULL
));
ASSIGN
(
key
,
PyObject_CallObject
(
key
,
NULL
));
UNLESS
(
key
)
return
-
1
;
UNLESS
(
key
)
return
-
1
;
...
@@ -631,7 +631,7 @@ void
...
@@ -631,7 +631,7 @@ void
initcPickleCache
()
initcPickleCache
()
{
{
PyObject
*
m
,
*
d
;
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.1
4
$"
;
char
*
rev
=
"$Revision: 1.1
5
$"
;
Cctype
.
ob_type
=&
PyType_Type
;
Cctype
.
ob_type
=&
PyType_Type
;
...
@@ -648,7 +648,7 @@ initcPickleCache()
...
@@ -648,7 +648,7 @@ initcPickleCache()
py_reload
=
PyString_FromString
(
"reload"
);
py_reload
=
PyString_FromString
(
"reload"
);
py__p_jar
=
PyString_FromString
(
"_p_jar"
);
py__p_jar
=
PyString_FromString
(
"_p_jar"
);
py__p_atime
=
PyString_FromString
(
"_p_atime"
);
py__p_atime
=
PyString_FromString
(
"_p_atime"
);
py__p_
__reinit__
=
PyString_FromString
(
"_p___reinit__
"
);
py__p_
deactivate
=
PyString_FromString
(
"_p_deactivate
"
);
PyDict_SetItemString
(
d
,
"__version__"
,
PyDict_SetItemString
(
d
,
"__version__"
,
PyString_FromStringAndSize
(
rev
+
11
,
strlen
(
rev
+
11
)
-
2
));
PyString_FromStringAndSize
(
rev
+
11
,
strlen
(
rev
+
11
)
-
2
));
...
@@ -661,6 +661,9 @@ initcPickleCache()
...
@@ -661,6 +661,9 @@ initcPickleCache()
/******************************************************************************
/******************************************************************************
$Log: cPickleCache.c,v $
$Log: cPickleCache.c,v $
Revision 1.15 1998/07/27 13:09:03 jim
Changed _p___reinit__ to _p_deactivate.
Revision 1.14 1998/02/05 14:43:10 jim
Revision 1.14 1998/02/05 14:43:10 jim
Fixed bug in ibcremental gc method.
Fixed bug in ibcremental gc method.
...
...
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