[Zope3-checkins] CVS: ZODB/src/ZODB/FileStorage - fspack.py:1.7
Tim Peters
tim.one at comcast.net
Tue Mar 16 15:51:37 EST 2004
Update of /cvs-repository/ZODB/src/ZODB/FileStorage
In directory cvs.zope.org:/tmp/cvs-serv31731/src/zodb/filestorage
Modified Files:
fspack.py
Log Message:
Try to say something about what the cryptically named arguments to
FileStoragePacker's constructor mean.
=== ZODB/src/ZODB/FileStorage/fspack.py 1.6 => 1.7 ===
--- ZODB/src/ZODB/FileStorage/fspack.py:1.6 Thu Feb 19 13:35:24 2004
+++ ZODB/src/ZODB/FileStorage/fspack.py Tue Mar 16 15:51:37 2004
@@ -269,7 +269,7 @@
try:
th = self._read_txn_header(pos)
except CorruptedDataError, err:
- if err.buf != "":
+ if err.buf != "":
raise
if th.status == 'p':
# Delay import to cope with circular imports.
@@ -408,6 +408,10 @@
class FileStoragePacker(FileStorageFormatter):
+ # path is the storage file path.
+ # stop is the pack time, as a TimeStamp.
+ # la and lr are the acquire() and release() methods of the storage's lock.
+ # cla and clr similarly, for the storage's commit lock.
def __init__(self, path, stop, la, lr, cla, clr):
self._name = path
self._file = open(path, "rb")
More information about the Zope3-Checkins
mailing list