Commit ba00c59
Fix morph-types seed race condition
Bump Harmony submodule to include the in-lock HasCommit check (sillsdev/harmony#66),
which closes the TOCTOU race between concurrent AddPredefinedMorphTypes callers
on a fresh project (BG sync's CreateProject vs. HTTP middleware's MigrateDb).
The MigrateDb pre-check was a small optimization, not a race guard — drop it,
let Harmony's in-lock check handle idempotency.
Note: won't build on develop until the .NET 10 chore lands (Harmony main is on .NET 10).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b1ab821 commit ba00c59
2 files changed
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
112 | 114 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
120 | 118 | | |
121 | 119 | | |
122 | 120 | | |
| |||
- Directory.Packages.props+6-6
- src/SIL.Harmony.Linq2db/Linq2dbKernel.cs+1-1
- src/SIL.Harmony.Linq2db/SIL.Harmony.Linq2db.csproj+1-1
- src/SIL.Harmony.Sample/CrdtSampleKernel.cs+2-1
- src/SIL.Harmony.Tests/DataModelPerformanceTests.cs+4-1
- src/SIL.Harmony.Tests/SIL.Harmony.Tests.csproj+1-1
- src/SIL.Harmony/DataModel.cs+1-1
0 commit comments