summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Haas2017-04-05 15:45:35 +0000
committerRobert Haas2017-04-05 15:45:35 +0000
commit75a1cbdc3cfca1e815da6dfa5d7e96d82a6b0725 (patch)
tree05a2c28c0bac8cce609976f16e9e4ab3016780f4
parent4deb413813f619b3e859abf435b61efc09cafe09 (diff)
hash: Fix write-ahead logging bug.
The size of the data is not the same thing as the size of the size of the data. Reported off-list by Tushar Ahuja. Fix by Ashutosh Sharma, reviewed by Amit Kapila. Discussion: http://postgr.es/m/CAE9k0PnmPDXfvf8HDObme7q_Ewc4E26ukHXUBPySoOs0ObqqaQ@mail.gmail.com
-rw-r--r--src/backend/access/hash/hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/hash/hash.c b/src/backend/access/hash/hash.c
index b835f772d4..80923611bb 100644
--- a/src/backend/access/hash/hash.c
+++ b/src/backend/access/hash/hash.c
@@ -707,7 +707,7 @@ loop_top:
xlrec.ntuples = metap->hashm_ntuples;
XLogBeginInsert();
- XLogRegisterData((char *) &xlrec, sizeof(SizeOfHashUpdateMetaPage));
+ XLogRegisterData((char *) &xlrec, SizeOfHashUpdateMetaPage);
XLogRegisterBuffer(0, metabuf, REGBUF_STANDARD);