[gdal-dev] Is writing/reading a VRTs an atomic operation?
Pablo Sanfilippo
sanfilippopablo at gmail.com
Thu Dec 6 08:59:07 PST 2018
Hello!
I'm building an application in which I will have multiple concurrent
process reading and writing to a VRT file. The writers are just multiple
instances of the same process that create a .vrt off a list of tiffs in a
folder. The writer process implement file locking, so I'm sure no two
processes will try to write the .vrt at the same time. But the readers
(which are gdal_translate calls that use the .vrt as input) don't lock the
.vrt so they can be ran at the same time. I can see a race condition
happening if gdalbuildvrt overwrites the file when some gdal_translate is
opening it. So, if I'm understanding this correctly, the question boils
down to: Is the read call that gdal_translate makes when reading a vrt file
atomic? And is the write call that gdalbuildvrt makes when writing the file
atomic?
Hope this makes sense.
Pablo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20181206/d6d6764e/attachment.html>
More information about the gdal-dev
mailing list