[Python-Dev] cpython (2.7): #9559: Append data to single-file mailbox files if messages are only added (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Thu Jun 28 13:07:02 CEST 2012
- Previous message: [Python-Dev] Creating release blockers for Python 3.4
- Next message: [Python-Dev] cpython (2.7): #9559: Append data to single-file mailbox files if messages are only added
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, 28 Jun 2012 12:59:02 +0200 petri.lehtinen <python-checkins at python.org> wrote:
http://hg.python.org/cpython/rev/c37cb11b546f changeset: 77832:c37cb11b546f branch: 2.7 parent: 77823:73710ae9fedc user: Petri Lehtinen <petri at digip.org> date: Thu Jun 28 13:48:17 2012 +0300 summary: #9559: Append data to single-file mailbox files if messages are only added
If messages were only added, a new file is no longer created and renamed over the old file when flush() is called on an mbox, MMDF or Babyl mailbox.
Why so? Appending is not atomic and, if it fails in the middle, you could get a corrupt mbox file. Furthermore, I disagree that it's a bugfix: IMO it should wait for 3.4.
Regards
Antoine.
- Previous message: [Python-Dev] Creating release blockers for Python 3.4
- Next message: [Python-Dev] cpython (2.7): #9559: Append data to single-file mailbox files if messages are only added
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]