Content-Length: 259008 | pFad | http://github.com/postgrespro/postgres_cluster/commit/75a1cbdc3cfca1e815da6dfa5d7e96d82a6b0725

7C hash: Fix write-ahead logging bug. · postgrespro/postgres_cluster@75a1cbd · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/75a1cbdc3cfca1e815da6dfa5d7e96d82a6b0725

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy