diff options
author | Robert Haas <rhaas@postgresql.org> | 2016-12-22 13:54:40 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2016-12-22 14:12:00 -0500 |
commit | 603ad8ad298315cab79fa4e1c78095e4a3eca003 (patch) | |
tree | 536ec88e4351540a0cbfba8870b90a264cba76df /src/tutorial/complex.c | |
parent | 9b8507bfae9119427a5c3acf037c466a7e3d7046 (diff) |
Fix broken error check in _hash_doinsert.
You can't just cast a HashMetaPage to a Page, because the meta page
data is stored after the page header, not at offset 0. Fortunately,
this didn't break anything because it happens to find hashm_bsize
at the offset at which it expects to find pd_pagesize_version, and
the 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.
Diffstat (limited to 'src/tutorial/complex.c')
0 files changed, 0 insertions, 0 deletions