Repository navigation
Commit b332778
fix(g2-followup): tiebreak newest-first journal scans on event_id (#159)
The bounded journal scan added in S4 (PR #158) ordered by
`{time_column} DESC` with no secondary key, unlike the existing
ascending path's `ASC, event_id ASC` total order. Two rows sharing an
identical timestamp for the same entity resolved to whichever the
backend happened to emit first — nondeterministic across backends and
across reloads. Add `, event_id DESC` to restore a total order and
match the old last-write-wins tie behavior deterministically.
Found in an Opus review pass standing in for the unavailable Codex
review step.
Co-authored-by: JuliaEdom <uedomskikh@gmail.com>1 parent 945fb00 commit b332778
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
0 commit comments