Commit f7d3e72
committed
Revert incorrect guard change from the previous NetworkRateBackfill fix
nics.network_rate is an unsigned int column, so it cannot store -1;
NULL is the established convention for "unlimited" there, exactly
matching how the live precedence code (NetworkOrchestrator.allocateNic())
already stores it. Changing the backfill's guard to write -1 caused a
real "Data truncation: Out of range value" failure, confirmed via a
second real upgrade run. The original rate > 0 check (skip writing on
unlimited, leaving NULL) was correct; only the router public-NIC NPE
fix from the previous commit was a genuine bug.1 parent 8800f0c commit f7d3e72
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
0 commit comments