Skip to content

Commit ad25a6b

Browse files
committed
Fix possible failure to mark hash metapage dirty.
Report and suggested fix by Lixian Zou. Amit Kapila put it in the form of a patch and reviewed. Discussion: http://postgr.es/m/151739848647.1239.12528851873396651946@wrigleys.postgresql.org
1 parent df9f599 commit ad25a6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/access/hash/hashovfl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,10 @@ _hash_addovflpage(Relation rel, Buffer metabuf, Buffer buf, bool retain_pin)
341341
metap->hashm_mapp[metap->hashm_nmaps] = BufferGetBlockNumber(newmapbuf);
342342
metap->hashm_nmaps++;
343343
metap->hashm_spares[splitnum]++;
344-
MarkBufferDirty(metabuf);
345344
}
346345

346+
MarkBufferDirty(metabuf);
347+
347348
/*
348349
* for new overflow page, we don't need to explicitly set the bit in
349350
* bitmap page, as by default that will be set to "in use".

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