Commit c5dad18b authored by Tim Peters's avatar Tim Peters

Try to say something about what the cryptically named arguments to

FileStoragePacker's constructor mean.
parent 11c3778e
...@@ -269,7 +269,7 @@ class GC(FileStorageFormatter): ...@@ -269,7 +269,7 @@ class GC(FileStorageFormatter):
try: try:
th = self._read_txn_header(pos) th = self._read_txn_header(pos)
except CorruptedDataError, err: except CorruptedDataError, err:
if err.buf != "": if err.buf != "":
raise raise
if th.status == 'p': if th.status == 'p':
# Delay import to cope with circular imports. # Delay import to cope with circular imports.
...@@ -408,6 +408,10 @@ class PackCopier(DataCopier): ...@@ -408,6 +408,10 @@ class PackCopier(DataCopier):
class FileStoragePacker(FileStorageFormatter): 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): def __init__(self, path, stop, la, lr, cla, clr):
self._name = path self._name = path
self._file = open(path, "rb") self._file = open(path, "rb")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment