- Notifications
You must be signed in to change notification settings - Fork28
Commitf37ff03
committed
Refactor confusing code in _mdfd_openseg().
As reported independently by a couple of people, _mdfd_openseg() is coded in away that seems to imply that the segments could be opened in an order thatisn't strictly sequential. Even if that were true, it's also using the wrongcomparison. It's not an active bug, since the condition is always true anyway,but it's confusing, so replace it with an assertion.Author: Thomas MunroReviewed-by: Andres Freund, Kyotaro Horiguchi, Noah MischDiscussion:https://postgr.es/m/CA%2BhUKG%2BNBw%2BuSzxF1os-SO6gUuw%3DcqO5DAybk6KnHKzgGvxhxA%40mail.gmail.comDiscussion:https://postgr.es/m/20191222091930.GA1280238%40rfd.leadboat.com1 parent215824f commitf37ff03
1 file changed
+7
-2
lines changedLines changed: 7 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1100 | 1100 |
| |
1101 | 1101 |
| |
1102 | 1102 |
| |
1103 |
| - | |
1104 |
| - | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
1105 | 1110 |
| |
1106 | 1111 |
| |
1107 | 1112 |
| |
|
0 commit comments
Comments
(0)