Commit 6656e93
Fix WAL log preallocation: 10 ^ 9 (XOR=3) -> 1000000000
`ftruncate(10 ^ 9)` is a bitwise XOR yielding 3 bytes, not the intended
1e9 (1 GB) log preallocation. It also fails gcc-13 -Werror=xor-used-as-pow.
Affects silo (ycsb/sbomb/tpcc/bomb) and ss2pl (bomb) under `#if WAL`.
Found via Izanagi parameter-space full enumeration: the WAL code path is
not compiled in default WAL=0 builds, so this stayed latent until WAL=1
was exercised across the optimization-flag hypercube.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 977e194 commit 6656e93
5 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments