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

Commitbf8bf6d

Browse files
committed
Fix _bt_allequalimage() call within critical section.
_bt_allequalimage() does complicated things, so it's not OK to call itin a critical section. Per buildfarm failure on 'prion', which uses-DRELCACHE_FORCE_RELEASE -DCATCACHE_FORCE_RELEASE options.Discussion:https://www.postgresql.org/message-id/6e5bbc08-cdfc-b2b3-9e23-1a914b9850a9@iki.fiBackpatch-through: 16, like commitccadf73 that introduced this
1 parent260a1f1 commitbf8bf6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/backend/access/nbtree/nbtree.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ bthandler(PG_FUNCTION_ARGS)
151151
void
152152
btbuildempty(Relationindex)
153153
{
154+
boolallequalimage=_bt_allequalimage(index, false);
154155
Buffermetabuf;
155156
Pagemetapage;
156157

@@ -169,7 +170,7 @@ btbuildempty(Relation index)
169170
START_CRIT_SECTION();
170171

171172
metapage=BufferGetPage(metabuf);
172-
_bt_initmetapage(metapage,P_NONE,0,_bt_allequalimage(index, false));
173+
_bt_initmetapage(metapage,P_NONE,0,allequalimage);
173174
MarkBufferDirty(metabuf);
174175
log_newpage_buffer(metabuf, true);
175176

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp