* Runs a command on the cluster's metadata holding coordinator node. */
| 110 | * Runs a command on the cluster's metadata holding coordinator node. |
| 111 | */ |
| 112 | DistributedRunCommandResult |
| 113 | RunCommandOnMetadataCoordinator(const char *query) |
| 114 | { |
| 115 | if (run_command_on_metadata_coordinator_hook != NULL) |
| 116 | { |
| 117 | return run_command_on_metadata_coordinator_hook(query); |
| 118 | } |
| 119 | |
| 120 | ereport(ERROR, (errcode(ERRCODE_DOCUMENTDB_INTERNALERROR), |
| 121 | errmsg("Unexpected. Should not call RunCommandOnMetadataCoordinator" |
| 122 | "When the node is a MetadataCoordinator"))); |
| 123 | } |
| 124 | |
| 125 | |
| 126 | /* |
no outgoing calls
no test coverage detected