[ZODB-Dev] [ZODB4] Bug...
Chris Withers
chrisw at nipltd.com
Fri May 30 18:04:06 EDT 2003
Cool. You might want to forward this to zope3-dev at zope.org or find the right
collector to put it in...
cheers,
Chris
Paolo Invernizzi wrote:
> 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
>
>
>
> _______________________________________________
> For more information about ZODB, see the ZODB Wiki:
> http://www.zope.org/Wikis/ZODB/
>
> ZODB-Dev mailing list - ZODB-Dev at zope.org
> http://mail.zope.org/mailman/listinfo/zodb-dev
>
>
More information about the ZODB-Dev
mailing list