This repository was archived by the owner on May 8, 2026. It is now read-only.
Commit 71eab7b
authored
fix: enforce read-before-write in transaction execute() (#2358)
Ensures that Pipeline.execute() calls within a transaction follow the
requirement that all reads must occur before any writes. Previously,
this check was missing from the execute() methods in
ServerSideTransaction.1 parent 6acac4b commit 71eab7b
2 files changed
Lines changed: 23 additions & 0 deletions
File tree
- google-cloud-firestore/src
- main/java/com/google/cloud/firestore
- test/java/com/google/cloud/firestore
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| 274 | + | |
274 | 275 | | |
275 | 276 | | |
276 | 277 | | |
277 | 278 | | |
278 | 279 | | |
279 | 280 | | |
280 | 281 | | |
| 282 | + | |
281 | 283 | | |
282 | 284 | | |
283 | 285 | | |
| |||
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
960 | 960 | | |
961 | 961 | | |
962 | 962 | | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
963 | 984 | | |
964 | 985 | | |
965 | 986 | | |
| |||
0 commit comments