Commit 36b79fd
authored
fix(pds): accept create+delete on the same rkey in applyWrites (#176)
Drop the pre-flight intra-batch rkey-collision check so create+delete on
the same rkey atomically resolves to a no-op, matching the reference PDS.
Two creates for the same rkey now surface as 409 RecordAlreadyExists from
the repo layer instead of a 400.1 parent b2de77a commit 36b79fd
3 files changed
Lines changed: 59 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | 516 | | |
521 | 517 | | |
522 | 518 | | |
| |||
567 | 563 | | |
568 | 564 | | |
569 | 565 | | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | 566 | | |
585 | 567 | | |
586 | 568 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1227 | 1227 | | |
1228 | 1228 | | |
1229 | 1229 | | |
1230 | | - | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
1231 | 1282 | | |
1232 | 1283 | | |
1233 | 1284 | | |
| |||
1264 | 1315 | | |
1265 | 1316 | | |
1266 | 1317 | | |
1267 | | - | |
| 1318 | + | |
1268 | 1319 | | |
1269 | | - | |
1270 | | - | |
| 1320 | + | |
1271 | 1321 | | |
1272 | 1322 | | |
1273 | 1323 | | |
| |||
0 commit comments