14 Mar
2019
14 Mar
'19
10:19 a.m.
On 3/14/19 9:31 AM, Florian Lindner via Boost wrote:
However, I have no idea how that could happen. I use the rename, so that a reading process never sees an empty file, but only no file or filed with info. Is there any race involved between ofs.close() and fs:rename()? The code was executed on a distributed network filesystem (lustre).
Any ideas anyone?
`strace -e trace=%file,close program` and complain to file system for not working. This doesn't seem to have anything to do with boost::filesystem, more with the underlying filesystem. It's not close that matters, but open. Your program should work just fine without the explicit close. - Adam