Am 12.01.2015 um 16:09 schrieb Wietse Venema:
[email protected]:
Hi list,
if you run postmap on an alias file by mistake it prints a warning but
still overwrites the .db file which is then unusable.
Is there any reason why postmap overwrites the .db although it detects
that the source file is not in the desired format?
1) It opens the output database.
2) It truncates the output database.
3) It reads the input.
Do you want it to read the whole input before step 1?
Do you want it to not truncate the database when 1% of inputs is
suspect?
10%?
50%?
what about
* open a temporary new file for step 1
* if the operations fails just delete it
* if the operation suceeds move it to the final location