[ZODB-Dev] [ZODB4] Bug...
Paolo Invernizzi
paoloinvernizzi at dmsware.com
Fri May 30 12:55:56 EDT 2003
Index: format.py
===================================================================
RCS file: /cvs-repository/ZODB4/src/zodb/storage/file/format.py,v
retrieving revision 1.4
diff -u -r1.4 format.py
--- format.py 15 May 2003 21:00:54 -0000 1.4
+++ format.py 30 May 2003 09:51:22 -0000
@@ -221,7 +221,7 @@
logger.warn("%s truncated, possibly due "
"to damaged records at %s",
self._file.name, pos)
- _truncate(self._file, self._file.name, pos)
+ self._file.truncate(pos)
break
if status not in ' up':
@@ -247,7 +247,7 @@
"to a system crash. %s truncated "
"to recover from bad data at end.",
self._file.name)
- _truncate(file, self._file.name, pos)
+ self._file.truncate(pos)
break
else:
if recover:
Traceback (most recent call last):
File "vnc_zeoserver.py", line 7, in ?
logging.root.setLevel(logging.DEBUG)
File "D:/repositories/ZODB4/src\zodb\zeo\runsvr.py", line 273, in main
self.open_storages()
File "D:/repositories/ZODB4/src\zodb\zeo\runsvr.py", line 308, in
open_storages
self.storages[name] = cls(**args)
File "D:/repositories/ZODB4/src\zodb\storage\file\main.py", line 139,
in __init__
read_only=read_only)
File "D:/repositories/ZODB4/src\zodb\storage\file\format.py", line
224, in _read_index
_truncate(self._file, self._file.name, pos)
NameError: global name '_truncate' is not defined
---
Paolo Invernizzi
More information about the ZODB-Dev
mailing list