Add assertion to quiet Coverity

This commit is contained in:
Peter Eisentraut 2017-05-15 13:59:58 -04:00
parent 82d24bab75
commit b1ff33fd9b
1 changed files with 3 additions and 0 deletions

View File

@ -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)