mirror of
https://github.com/postgres/postgres.git
synced 2026-02-24 18:37:22 -05:00
Allow HotStandbyActiveInReplay() to be called in single user mode.
HotStandbyActiveInReplay, introduced in061b079f, only allowed WAL replay to happen in the startup process, missing the single user case. This buglet is fairly harmless as it only causes problems when single user mode in an assertion enabled build is used to replay a btree vacuum record. Backpatch to 9.2.061b079fwas backpatched further, but the assertion was not.
This commit is contained in:
parent
be25a08a91
commit
0db10d4e92
1 changed files with 1 additions and 1 deletions
|
|
@ -7575,7 +7575,7 @@ HotStandbyActive(void)
|
|||
bool
|
||||
HotStandbyActiveInReplay(void)
|
||||
{
|
||||
Assert(AmStartupProcess());
|
||||
Assert(AmStartupProcess() || !IsPostmasterEnvironment);
|
||||
return LocalHotStandbyActive;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue