Commit 31eb6ef
committed
test: adapt ShardRouting_Correctness for FNV-1a routing
The test relied on std::hash<int64_t> being identity (libstdc++) so
that hash(3) % 3 == 0 routes id=3 to shard_1. Issue 09 replaced
std::hash with FNV-1a 64-bit, which produces a different
distribution. Pre-computed: FNV-1a(4) % 3 == 0, and id=4 lives on
shard_1, so the test still verifies the route-to-correct-shard
property without restructuring the fixture.
This was missed when issue 09 landed (f0f2915) because verification
focused on scripts/test_sqlengine.sh and the new tests/test_shard_map.cpp
suite; the existing distributed-planner test wasn't re-run.1 parent a90d147 commit 31eb6ef
1 file changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
805 | 805 | | |
806 | 806 | | |
807 | 807 | | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
812 | 813 | | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | | - | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
817 | 820 | | |
818 | 821 | | |
819 | 822 | | |
| |||
0 commit comments