Allow HotStandbyActiveInReplay() to be called in single user mode.
authorAndres Freund <[email protected]>
Sun, 7 Jun 2015 22:30:26 +0000 (00:30 +0200)
committerAndres Freund <[email protected]>
Mon, 8 Jun 2015 12:09:46 +0000 (14:09 +0200)
commit0db10d4e92b655dbb3cb3a08830783107e5f9e60
tree424ececf5e586350c587e43328d0371264353a9d
parentbe25a08a9140c9641e8c49780cebdd9e1cf3ad28
Allow HotStandbyActiveInReplay() to be called in single user mode.

HotStandbyActiveInReplay, introduced in 061b079f, 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. 061b079f was backpatched further, but the assertion
was not.
src/backend/access/transam/xlog.c