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

Commit0db10d4

Browse files
committed
Allow HotStandbyActiveInReplay() to be called in single user mode.
HotStandbyActiveInReplay, introduced in061b079, only allowed WALreplay to happen in the startup process, missing the single user case.This buglet is fairly harmless as it only causes problems when singleuser mode in an assertion enabled build is used to replay a btree vacuumrecord.Backpatch to 9.2.061b079 was backpatched further, but the assertionwas not.
1 parentbe25a08 commit0db10d4

File tree

1 file changed

+1
-1
lines changed
  • src/backend/access/transam

1 file changed

+1
-1
lines changed

‎src/backend/access/transam/xlog.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7575,7 +7575,7 @@ HotStandbyActive(void)
75757575
bool
75767576
HotStandbyActiveInReplay(void)
75777577
{
7578-
Assert(AmStartupProcess());
7578+
Assert(AmStartupProcess()|| !IsPostmasterEnvironment);
75797579
returnLocalHotStandbyActive;
75807580
}
75817581

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp