forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf04d1c1
committed
Improve assertion in mdwritev()
The assertion used at the beginning of mdwritev(), that is not enabledexcept by defining -DCHECK_WRITE_VS_EXTEND as mdnblocks() is costly,forgot about the total number of blocks to write at location specifiedby the caller. The calculation is fixed to count for that, and usescasts to uint64 to ensure a proper check should the number of blocksoverflow.Using a cast is a suggestion from Tom Lane.Oversight in4908c58.Author: Xing GuoDiscussion:https://postgr.es/m/CACpMh+BM-VgKeO7suPG-VHTtpzJ+zsbDPwVHu42PLp-iTk0z+A@mail.gmail.com1 parent4ebe51a commitf04d1c1
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
930 | 930 |
| |
931 | 931 |
| |
932 | 932 |
| |
933 |
| - | |
| 933 | + | |
934 | 934 |
| |
935 | 935 |
| |
936 | 936 |
| |
|
0 commit comments
Comments
(0)