Skip to content

Commit

Permalink
Judge whether commands need to be dispatched to QEs in QD (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
wenchaozhang-123 authored Nov 24, 2023
1 parent e0ed138 commit 57a5cf8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/backend/cdb/dispatcher/cdbdisp_query.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,10 @@ CdbDispatchSetCommand(const char *strCommand, bool cancelOnError)
int queryTextLength;
ListCell *le;
ErrorData *qeError = NULL;
int flags = DF_NONE;

if (CdbNeedDispatchCommand_hook && !CdbNeedDispatchCommand_hook(strCommand, &flags, NULL, NULL))
return;

elog((Debug_print_full_dtm ? LOG : DEBUG5),
"CdbDispatchSetCommand for command = '%s'",
Expand Down

0 comments on commit 57a5cf8

Please sign in to comment.