Promote the assertion that XLogBeginInsert() is not called twice into ERROR.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: a32c3ec893cafbd3a4b42c34270a80198f28f123
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2015-06-28T19:30:39Z
Releases: 9.5.0
Promote the assertion that XLogBeginInsert() is not called twice into ERROR.

Seems like cheap insurance for WAL bugs. A spurious call to
XLogBeginInsert() in itself would be fairly harmless, but if there is any
data registered and the insertion is not completed/cancelled properly, there
is a risk that the data ends up in a wrong WAL record.

Per Jeff Janes's suggestion.

Files

PathChange+/−
src/backend/access/transam/xloginsert.c modified +3 −1