]> granicus.if.org Git - postgresql/commit
Use ereport(ERROR) instead of Assert() to emit syncrep_parser error.
authorFujii Masao <fujii@postgresql.org>
Mon, 11 Apr 2016 06:52:27 +0000 (15:52 +0900)
committerFujii Masao <fujii@postgresql.org>
Mon, 11 Apr 2016 06:52:27 +0000 (15:52 +0900)
commit0038c1e2181b520a9307aae6587e110468072392
tree20a9f4178c345825cabac04c88ffac12f964041f
parentf73b2bbbdcb387aa90ff619fe03d1924ed82b868
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.
src/backend/replication/syncrep.c