Skip to content

Commit

Permalink
[CBRD-25771] Add usage message when fname exists but DIAGDUMP_HEAP is…
Browse files Browse the repository at this point in the history
… not specified
  • Loading branch information
InChiJun committed Jan 20, 2025
1 parent 69ef11a commit 30116b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/executables/util_sa.c
Original file line number Diff line number Diff line change
Expand Up @@ -1603,6 +1603,11 @@ diagdb (UTIL_FUNCTION_ARG * arg)
goto print_diag_usage;
}

if (diag != DIAGDUMP_HEAP && fname != NULL)
{
goto print_diag_usage;
}

if (check_database_name (db_name))
{
goto error_exit;
Expand Down

0 comments on commit 30116b4

Please sign in to comment.