Skip to content
Tcl Source Code Artifact [3bc605cd57]
Login

Artifact [3bc605cd57]

Artifact 3bc605cd57eb820df520e758e338d7ea477b6cb6bd010fb7c4b5d62853030126:

Ticket change [3bc605cd57] - Closed ticket [270f78ca95b642fb|270f78ca95]: <i>file mkdir: race condition if two workers creates same directory and one worker deletes it immediately</i> plus 6 other changes by sebres on 2018-07-09 17:38:03.
D 2018-07-09T17:38:03.902
J closedate 2458309.23476738
J closer sebres
J icomment Fixed\sin\s[1c12ee9e45222d6c],\sthus\sclose.\r\n\r\nAlthough\sthe\scase\sis\svery\sstrange\s(the\sdelete\simplicitly\safter\screate\sis\sIMHO\snot\sgood\sway\sin\sany\scase,\sbecause\scan\scause\sa\slot\sof\sother\srace\sconditions),\sbut\sI\scould\simagine\ssituations\swhere\sit\smay\sbe\sexpected\sresp.\scould\soccur\sonce\s(e.\sg.\sthe\sthree-point\sdelete/create/create).\r\n\r\nSo\sthis\sone\sis\sfixed\snow\s(under\sassumption\sthe\stime\sof\screation\sinside\sone\sworker\sis\simportant\sand\sif\sanother\sworker\sdeletes\sthe\sfolder,\seach\sworker\shas\sexactly\sone\sattempt\sto\srepeat\sthe\screation.\sHereafter\sit\sgets\soff\swith\sthe\ssuccess,\sif\sit's\sa\stail\s(despite\sthe\sdirectory\smay\snot\sexist),\sor\sfails\sdeeper\son\screate\sof\schild\sfolders\sif\sit\swas\snot\sa\stail\sdirectory.\r\n\r\nOther\simaginable\srace\sconditions\son\smkdir\sare\sunwanted\sresp.\simpossible\sto\sfix\sand\sshould\sbe\sresolved\sanother\sway's\s(like\sRFE\s[4f322b9d21]).
J login sebres
J mimetype text/x-fossil-wiki
J resolution Fixed
J status Closed
K 270f78ca95b642fbed81ed03ad381d64a0d0f7df
U sebres
Z 9feaa6e08ab25cb1b5c871607cd05df9