8000 Add assertion to quiet Coverity · postgrespro/postgres_cluster@b1ff33f · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b1ff33f

Browse files
committed
Add assertion to quiet Coverity
1 parent 82d24ba commit b1ff33f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backend/commands/subscriptioncmds.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ parse_subscription_options(List *options, bool *connect, bool *enabled_given,
6969
bool create_slot_given = false;
7070
bool copy_data_given = false;
7171

72+
/* If connect is specified, the others also need to be. */
73+
Assert(!connect || (enabled && create_slot && copy_data));
74+
7275
if (connect)
7376< 3D1A code class="diff-text syntax-highlighted-line">
*connect = true;
7477
if (enabled)

0 commit comments

Comments
 (0)
0