Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitad25a6b

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

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)

[8]ページ先頭

©2009-2025 Movatter.jp