[OSM-dev] tiles at home disk usage
Grant Slater
openstreetmap at firefishy.com
Wed May 2 17:34:19 BST 2007
> Better, so that the update is atomic:
>
> create_file(x/y/tile.png.new)
> mv(x/y/tile.png.new, x/y/tile.png)
>
> and then forget the stat.
>
>
Checked the code,
http://svn.openstreetmap.org/sites/other/tilesAtHome/Upload/tile2.php
-------------------
# Move the file to its new home
rename($OldFilename, $NewFilename);
-------------------
So, no code change is required.
Hard link duplicates away! ;-)
http://www.furryterror.org/~zblaxell/dupemerge/faster-dupemerge
Grant
More information about the dev
mailing list