Commit a80d486
fix: only record structure update after txn commits
Move `this.structureUpdate = structures` out of the transactionSync
callback so it is only set on a confirmed commit. Setting it inside the
callback left it dangling on an aborted txn, which could flag a spurious
HAS_STRUCTURE_UPDATE in the audit log for a structure that was never
persisted. Addresses review feedback.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 9e69cad commit a80d486
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
250 | 249 | | |
251 | 250 | | |
252 | 251 | | |
253 | 252 | | |
254 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
255 | 261 | | |
256 | 262 | | |
257 | 263 | | |
| |||
0 commit comments