forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit46cf3c7
committed
nbtree: Demote incomplete split "can't happen" error.
Only a basic logic bug in a _bt_insertonpg() caller could lead to aviolation of this invariant (index corruption won't do it). A "can'thappen" error seems inappropriate (it is arbitrary at best).Demote the error to a simple assertion. This matches similar nearbysanity checks.1 parentff94205 commit46cf3c7
1 file changed
+2
-5
lines changedLines changed: 2 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1129 | 1129 |
| |
1130 | 1130 |
| |
1131 | 1131 |
| |
| 1132 | + | |
| 1133 | + | |
1132 | 1134 |
| |
1133 | 1135 |
| |
1134 | 1136 |
| |
| |||
1138 | 1140 |
| |
1139 | 1141 |
| |
1140 | 1142 |
| |
1141 |
| - | |
1142 |
| - | |
1143 |
| - | |
1144 |
| - | |
1145 |
| - | |
1146 | 1143 |
| |
1147 | 1144 |
| |
1148 | 1145 |
| |
|
0 commit comments
Comments
(0)