[Zope3-dev] Missing _truncate in FileStorage

Marius Gedminas mgedmin@codeworks.lt
Wed, 23 Jul 2003 18:20:39 +0300


--y0ulUmNC+osPPQO6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I just got a strange error when trying to start Zope 3:

2003-07-23T18:17:11 WARNING zodb.storage.file Data.fs truncated, possibly d=
ue to damaged records at 560016
Traceback (most recent call last):
  File "z3.py", line 67, in ?
    run()
  File "z3.py", line 63, in run
    main(argv[1:])
  File "/home/users/mg/Zope3/src/zope/app/process/main.py", line 56, in main
    setup(args)
  File "/home/users/mg/Zope3/src/zope/app/process/main.py", line 88, in set=
up
    db =3D options.database.open()
  File "/home/users/mg/Zope3/src/zodb/config.py", line 97, in open
    return zodb.db.DB(section.storage.open(),
  File "/home/users/mg/Zope3/src/zodb/config.py", line 126, in open
    quota=3Dself.config.quota)
  File "/home/users/mg/Zope3/src/zodb/storage/file/main.py", line 138, in _=
_init__
    read_only=3Dread_only)
  File "/home/users/mg/Zope3/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


_truncate is called twice in zodb.storage.file.format, but never defined
or imported.

Marius Gedminas
--=20
Codeworks is available for Zope consulting -- http://www.codeworks.lt/

--y0ulUmNC+osPPQO6
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/HqfHkVdEXeem148RAhvoAJ4y9MkBCJvuXM5OpH9SsClZ2MN17gCeMZ/P
+bDKMFPLPONxwFYe5PD3PyQ=
=bN9l
-----END PGP SIGNATURE-----

--y0ulUmNC+osPPQO6--