MCPcopy Create free account
hub / github.com/documentdb/documentdb / RunCommandOnMetadataCoordinator

Function RunCommandOnMetadataCoordinator

pg_documentdb/src/api_hooks.c:112–123  ·  view source on GitHub ↗

* Runs a command on the cluster's metadata holding coordinator node. */

Source from the content-addressed store, hash-verified

110 * Runs a command on the cluster's metadata holding coordinator node.
111 */
112DistributedRunCommandResult
113RunCommandOnMetadataCoordinator(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/*

Callers 15

command_drop_collectionFunction · 0.85
create_roleFunction · 0.85
drop_roleFunction · 0.85
roles_infoFunction · 0.85
command_compactFunction · 0.85
command_shard_collectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected