No need to makeBackupIfSmaller in databases. That's more for configuration files.

This commit is contained in:
Jeremy Fincher 2005-01-14 14:46:52 +00:00
parent e1a8aab4f7
commit 4624115909
1 changed files with 2 additions and 1 deletions

View File

@ -262,7 +262,8 @@ class FlatfileMapping(MappingInterface):
def vacuum(self):
infd = file(self.filename)
outfd = utils.transactionalFile(self.filename)
outfd = utils.transactionalFile(self.filename,
makeBackupIfSmaller=False)
outfd.write(infd.readline()) # First line, nextId.
for line in infd:
if not line.startswith('-'):