Commit dab311a
committed
unix: delay fs req register until after validation
On Unix, if a fs function fails validation after INIT but
before sending the work to the thread pool, then is is
necessary to manually unregister the request. This commit
moves the registration to just before the work submission.
This also makes Unix match the Windows behavior.
Refs: libuv#1747
Refs: nodejs/node#18811
PR-URL: libuv#1751
Reviewed-By: Ben Noordhuis <[email protected]>1 parent e6168df commit dab311a
1 file changed
+7
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 71 | + | |
74 | 72 | | |
75 | 73 | | |
76 | 74 | | |
| |||
88 | 86 | | |
89 | 87 | | |
90 | 88 | | |
91 | | - | |
92 | | - | |
| 89 | + | |
93 | 90 | | |
94 | | - | |
95 | 91 | | |
96 | 92 | | |
97 | 93 | | |
| |||
107 | 103 | | |
108 | 104 | | |
109 | 105 | | |
110 | | - | |
111 | | - | |
| 106 | + | |
112 | 107 | | |
113 | | - | |
114 | 108 | | |
115 | 109 | | |
116 | 110 | | |
| |||
121 | 115 | | |
122 | 116 | | |
123 | 117 | | |
| 118 | + | |
124 | 119 | | |
125 | 120 | | |
126 | 121 | | |
| |||
1288 | 1283 | | |
1289 | 1284 | | |
1290 | 1285 | | |
1291 | | - | |
1292 | | - | |
1293 | | - | |
| 1286 | + | |
1294 | 1287 | | |
1295 | | - | |
1296 | 1288 | | |
1297 | 1289 | | |
1298 | 1290 | | |
| |||
1329 | 1321 | | |
1330 | 1322 | | |
1331 | 1323 | | |
1332 | | - | |
1333 | | - | |
1334 | | - | |
| 1324 | + | |
1335 | 1325 | | |
1336 | | - | |
1337 | 1326 | | |
1338 | 1327 | | |
1339 | 1328 | | |
| |||
1468 | 1457 | | |
1469 | 1458 | | |
1470 | 1459 | | |
1471 | | - | |
1472 | | - | |
1473 | | - | |
| 1460 | + | |
1474 | 1461 | | |
1475 | | - | |
1476 | 1462 | | |
1477 | 1463 | | |
1478 | 1464 | | |
| |||
0 commit comments