You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both operation A and B first checks the existence of tmpDir and thought tmpDir does not exist. Then both of them will try to create it. One of A and B will success and the other will fail.
The root cause is that the asynchronous call sequence isWritable() -> rmFile() may be violated by another call to ncp()
This may be a same bug as #125.
The test case:
The execution result is:
Both operation A and B first checks the existence of
tmpDir
and thoughttmpDir
does not exist. Then both of them will try to create it. One of A and B will success and the other will fail.The root cause is that the asynchronous call sequence
isWritable()
->rmFile()
may be violated by another call toncp()
ncp/lib/ncp.js
Lines 221 to 229 in 6820b0f
ncp/lib/ncp.js
Lines 148 to 151 in 6820b0f
The text was updated successfully, but these errors were encountered: