Tcl Source Code

Artifact Content
Login

Artifact 3a4e4e651bb015cb5ab008b1cdc0cba5818d8d6d5b29ff323cf01583ca7429a6:

Ticket change [3a4e4e651b] - Ticket [270f78ca95] file mkdir: race condition if two workers creates same directory and one worker deletes it immediately status still Closed with 5 other changes by sebres 2018-07-11 00:22:24.
D 2018-07-11T00:22:24.352
J closedate 2458310.51555963
J closer sebres
J icomment So\sI\sassume\sit\sworks\snow\sfor\syou\salso\sas\sregards\syour\sNFS\s(NAS\sshare)?\r\n\r\nBut\swhat\sI\sdon't\sunderstand,\show\sit\scan\sfail\swithout\sdelete\sat\sall\s(especially\swith\sEEXIST\serror\scode).\r\nPossibly\syou\suse\ssomething\slike\stemporary\sfolders\s(just\swith\srange\sof\sthe\ssame\snames)?\sSo\sit\scould\sbe\sdeleted\s(after\swork\sdone)?\r\nIn\scase\slike\sthis\sI\sthink\sto\sresolve\ssuch\stime-issues\s(and\sthey\sare\srather\sa\stime-\sas\sa\srace-condition\sindirectly)\syou\sshould\spossibly\sadd\ssome\sbusiness\slogic\s(e.\sg.\swith\ssome\stime-component\sin\sthe\sname\sof\sthe\sfolder)\sto\savoid\sdeleting\sof\sstill\s"active"\sdirectory\s(as\salready\ssaid\slike\sdescribed\sin\sRFE\s[4f322b9d21]).\r\nNote,\sthat\sin\sthis\scase\sboth\screater-workers\swill\sreturn\ssuccessfully,\sbut\sfolder\swill\sbe\snot\sexist\s(because\sdeleted)\sso\syou'll\sget\sa\sconsequential\serror\sjust\slater.\r\n\r\nAlso\snote\son\sNFS\s(especially\sunder\scontrol\sof\sWindows)\sthere\sare\ssome\srude\santivirus\sor\sother\sIDS-similar\ssoftware's\s(could\suse\squarantine,\sworker\ssuspending\sand\sco),\sthat\smay\scause\ssimilar\serrors\sthere.
J login sebres
J mimetype text/x-fossil-wiki
K 270f78ca95b642fbed81ed03ad381d64a0d0f7df
U sebres
Z ac2ea462909c2465f57c68849ab4c812