Skip to content

Commit 75a1cbd

Browse files
committed
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
1 parent 4deb413 commit 75a1cbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/hash/hash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ hashbulkdelete(IndexVacuumInfo *info, IndexBulkDeleteResult *stats,
707707
xlrec.ntuples = metap->hashm_ntuples;
708708

709709
XLogBeginInsert();
710-
XLogRegisterData((char *) &xlrec, sizeof(SizeOfHashUpdateMetaPage));
710+
XLogRegisterData((char *) &xlrec, SizeOfHashUpdateMetaPage);
711711

712712
XLogRegisterBuffer(0, metabuf, REGBUF_STANDARD);
713713

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy