mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
No need to makeBackupIfSmaller in databases. That's more for configuration files.
This commit is contained in:
parent
e1a8aab4f7
commit
4624115909
@ -262,7 +262,8 @@ class FlatfileMapping(MappingInterface):
|
|||||||
|
|
||||||
def vacuum(self):
|
def vacuum(self):
|
||||||
infd = file(self.filename)
|
infd = file(self.filename)
|
||||||
outfd = utils.transactionalFile(self.filename)
|
outfd = utils.transactionalFile(self.filename,
|
||||||
|
makeBackupIfSmaller=False)
|
||||||
outfd.write(infd.readline()) # First line, nextId.
|
outfd.write(infd.readline()) # First line, nextId.
|
||||||
for line in infd:
|
for line in infd:
|
||||||
if not line.startswith('-'):
|
if not line.startswith('-'):
|
||||||
|
Loading…
Reference in New Issue
Block a user