Commit ff342da
fix(ci): protect allocate_slot file_path with bg_mutex_ + skip mmap tests on Windows
TSan: Hold bg_mutex_ when writing slot.file_path in allocate_slot() to
synchronize with segment_paths() which reads it under the same mutex.
The bg thread and main thread both access file_path concurrently.
Windows: Wrap WalMmapWriter test section (8 tests) in #ifndef _WIN32.
Windows mmap segment pre-allocation leaves non-zero data in the
trailing portion of mapped files, causing WalReader to read stale
entries past the actual written data (40 read vs 20 expected).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent a442962 commit ff342da
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
699 | | - | |
| 699 | + | |
700 | 700 | | |
701 | 701 | | |
702 | 702 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1094 | 1094 | | |
1095 | 1095 | | |
1096 | 1096 | | |
| 1097 | + | |
| 1098 | + | |
1097 | 1099 | | |
| 1100 | + | |
1098 | 1101 | | |
1099 | 1102 | | |
1100 | 1103 | | |
| |||
1384 | 1387 | | |
1385 | 1388 | | |
1386 | 1389 | | |
| 1390 | + | |
| 1391 | + | |
1387 | 1392 | | |
1388 | 1393 | | |
1389 | 1394 | | |
| |||
0 commit comments