mirror of
https://github.com/postgres/postgres.git
synced 2025-08-09 17:03:00 +03:00
Add assertion to quiet Coverity
This commit is contained in:
@@ -69,6 +69,9 @@ parse_subscription_options(List *options, bool *connect, bool *enabled_given,
|
||||
bool create_slot_given = false;
|
||||
bool copy_data_given = false;
|
||||
|
||||
/* If connect is specified, the others also need to be. */
|
||||
Assert(!connect || (enabled && create_slot && copy_data));
|
||||
|
||||
if (connect)
|
||||
*connect = true;
|
||||
if (enabled)
|
||||
|
Reference in New Issue
Block a user