Use ereport(ERROR) instead of Assert() to emit syncrep_parser error.

Fujii Masao <fujii@postgresql.org>

Commit: 0038c1e2181b520a9307aae6587e110468072392
Author: Fujii Masao <fujii@postgresql.org>
Date: 2016-04-11T06:52:27Z
Releases: 9.6.0
Use ereport(ERROR) instead of Assert() to emit syncrep_parser error.

The existing code would either Assert or generate an invalid
SyncRepConfig variable, neither of which is desirable. A regular
error should be thrown instead.

This commit silences compiler warning in non assertion-enabled builds.

Per report from Jeff Janes.
Suggested fix by Tom Lane.

Files

PathChange+/−
src/backend/replication/syncrep.c modified +6 −1