- Notifications
You must be signed in to change notification settings - Fork28
Commit17742a0
committed
Fix broken error check in _hash_doinsert.
You can't just cast a HashMetaPage to a Page, because the meta pagedata is stored after the page header, not at offset 0. Fortunately,this didn't break anything because it happens to find hashm_bsizeat the offset at which it expects to find pd_pagesize_version, andthe values are close enough to the same that this works out.Still, it's a bug, so back-patch to all supported versions.Mithun Cy, revised a bit by me.1 parent51126cc commit17742a0
1 file changed
+5
-3
lines changedLines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
| 37 | + | |
37 | 38 |
| |
38 | 39 |
| |
39 | 40 |
| |
| |||
53 | 54 |
| |
54 | 55 |
| |
55 | 56 |
| |
56 |
| - | |
| 57 | + | |
| 58 | + | |
57 | 59 |
| |
58 | 60 |
| |
59 | 61 |
| |
| |||
62 | 64 |
| |
63 | 65 |
| |
64 | 66 |
| |
65 |
| - | |
| 67 | + | |
66 | 68 |
| |
67 | 69 |
| |
68 | 70 |
| |
69 |
| - | |
| 71 | + | |
70 | 72 |
| |
71 | 73 |
| |
72 | 74 |
| |
|
0 commit comments
Comments
(0)