| 618 | |
| 619 | |
| 620 | const char * |
| 621 | GetOperationCancellationQuery(int64 shardId, StringView *opIdView, int *nargs, |
| 622 | Oid **argTypes, |
| 623 | Datum **argValues, char **argNulls, |
| 624 | const char *(*default_get_query)(int64, StringView *, int *, |
| 625 | Oid **, Datum **, char **)) |
| 626 | { |
| 627 | if (get_operation_cancellation_query_hook != NULL) |
| 628 | { |
| 629 | return get_operation_cancellation_query_hook(shardId, opIdView, nargs, argTypes, |
| 630 | argValues, argNulls); |
| 631 | } |
| 632 | else if (default_get_query == NULL) |
| 633 | { |
| 634 | return NULL; |
| 635 | } |
| 636 | return default_get_query(shardId, opIdView, nargs, argTypes, argValues, argNulls); |
| 637 | } |
| 638 | |
| 639 | |
| 640 | bool |