Re: replace from msql2mysql and filedates
Sergei Golubchik <[email protected]>
| Newsgroups | gmane.comp.db.mysql.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hi! On Aug 02, Florian Rittmeier wrote: > Hi! > I was using the tool 'replace', which is shipped with msql2mysql, to > replace some words in a group of files. > > It was embarrassing to see, that 'replace' does not only replace the > contents of the files. > It first unlinks the files and then recreates them. No, it first creates a temporary file, and after replacing is done, moves it over target file (deleting old one if exists). > Through this, the filecreationtime is set to the current time/date. > IMHO 'replace' should only rewrite the file, without unlinking it > first. It's a feature - the way it's done now old "target file" will be untouched if something will go wrong, that is it can never have a partially replaced contents. Regards, Sergei -- __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Sergei Golubchik <[email protected]> / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Senior Software Developer /_/ /_/\_, /___/\___\_\___/ Osnabrueck, Germany <___/ www.mysql.com -- MySQL Bugs Mailing List For list archives: http://lists.mysql.com/bugs To unsubscribe: http://lists.mysql.com/[email protected]