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
5748c0bc
Commit
5748c0bc
authored
Oct 01, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log the actual class name.
parent
5afd5f2e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
src/ZEO/ClientCache.py
src/ZEO/ClientCache.py
+3
-3
src/ZEO/ClientStorage.py
src/ZEO/ClientStorage.py
+4
-3
src/ZEO/StorageServer.py
src/ZEO/StorageServer.py
+2
-2
No files found.
src/ZEO/ClientCache.py
View file @
5748c0bc
...
@@ -99,7 +99,7 @@ with '\0\0\0\0'.
...
@@ -99,7 +99,7 @@ with '\0\0\0\0'.
If var is not writable, then temporary files are used for
If var is not writable, then temporary files are used for
file 0 and file 1.
file 0 and file 1.
$Id: ClientCache.py,v 1.3
7 2002/09/18 21:22:58
gvanrossum Exp $
$Id: ClientCache.py,v 1.3
8 2002/10/01 21:12:12
gvanrossum Exp $
"""
"""
import
os
import
os
...
@@ -184,8 +184,8 @@ class ClientCache:
...
@@ -184,8 +184,8 @@ class ClientCache:
f
[
0
].
write
(
magic
)
f
[
0
].
write
(
magic
)
current
=
0
current
=
0
log
(
"
ClientCache
: storage=%r, size=%r; file[%r]=%r"
%
log
(
"
%s
: storage=%r, size=%r; file[%r]=%r"
%
(
storage
,
size
,
current
,
p
[
current
]))
(
s
elf
.
__class__
.
__name__
,
s
torage
,
size
,
current
,
p
[
current
]))
self
.
_limit
=
size
/
2
self
.
_limit
=
size
/
2
self
.
_current
=
current
self
.
_current
=
current
...
...
src/ZEO/ClientStorage.py
View file @
5748c0bc
...
@@ -20,7 +20,7 @@ ClientStorageError -- exception raised by ClientStorage
...
@@ -20,7 +20,7 @@ ClientStorageError -- exception raised by ClientStorage
UnrecognizedResult -- exception raised by ClientStorage
UnrecognizedResult -- exception raised by ClientStorage
ClientDisconnected -- exception raised by ClientStorage
ClientDisconnected -- exception raised by ClientStorage
$Id: ClientStorage.py,v 1.7
2 2002/10/01 18:45:56
gvanrossum Exp $
$Id: ClientStorage.py,v 1.7
3 2002/10/01 21:12:12
gvanrossum Exp $
"""
"""
# XXX TO DO
# XXX TO DO
...
@@ -166,8 +166,9 @@ class ClientStorage:
...
@@ -166,8 +166,9 @@ class ClientStorage:
true.
true.
"""
"""
log2
(
INFO
,
"ClientStorage (pid=%d) created %s/%s for storage: %r"
%
log2
(
INFO
,
"%s (pid=%d) created %s/%s for storage: %r"
%
(
os
.
getpid
(),
(
self
.
__class__
.
__name__
,
os
.
getpid
(),
read_only
and
"RO"
or
"RW"
,
read_only
and
"RO"
or
"RW"
,
read_only_fallback
and
"fallback"
or
"normal"
,
read_only_fallback
and
"fallback"
or
"normal"
,
storage
))
storage
))
...
...
src/ZEO/StorageServer.py
View file @
5748c0bc
...
@@ -97,8 +97,8 @@ class StorageServer:
...
@@ -97,8 +97,8 @@ class StorageServer:
msg
=
", "
.
join
(
msg
=
", "
.
join
(
[
"%s:%s"
%
(
name
,
storage
.
isReadOnly
()
and
"RO"
or
"RW"
)
[
"%s:%s"
%
(
name
,
storage
.
isReadOnly
()
and
"RO"
or
"RW"
)
for
name
,
storage
in
storages
.
items
()])
for
name
,
storage
in
storages
.
items
()])
log
(
"
StorageServer
created %s with storages: %s"
%
log
(
"
%s
created %s with storages: %s"
%
(
read_only
and
"RO"
or
"RW"
,
msg
))
(
self
.
__class__
.
__name__
,
read_only
and
"RO"
or
"RW"
,
msg
))
for
s
in
storages
.
values
():
for
s
in
storages
.
values
():
s
.
_waiting
=
[]
s
.
_waiting
=
[]
self
.
read_only
=
read_only
self
.
read_only
=
read_only
...
...
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