1MONGOC_CLIENT_COMMAND_SIMPLE_WITHM_OSNElGRiOVbCEm_RoC_nLIgIDoE(cN3T)_COMMAND_SIMPLE_WITH_SERVER_ID(3)
2
3
4
6 bool
7 mongoc_client_command_simple_with_server_id (
8 mongoc_client_t *client,
9 const char *db_name,
10 const bson_t *command,
11 const mongoc_read_prefs_t *read_prefs,
12 uint32_t server_id,
13 bson_t *reply,
14 bson_error_t *error);
15
16 This function executes a command on a specific server, using the data‐
17 base and command specification provided.
18
19 This function is not considered a retryable read operation.
20
22 • client: A mongoc_client_t.
23
24 • db_name: The name of the database to run the command on.
25
26 • read_prefs: An optional mongoc_read_prefs_t.
27
28 • server_id: An opaque id specifying which server to use.
29
30 • reply: An optional location for a bson_t which will store the
31 server's reply.
32
33 • error: An optional location for a bson_error_t or a NULL.
34
36 Returns true if successful. Returns false and sets error if there are
37 invalid arguments or a server or network error.
38
39 This function does not check the server response for a write concern
40 error or write concern timeout.
41
43 MongoDB, Inc
44
46 2017-present, MongoDB, Inc
47
48
49
50
511.25.1 MNOoNvGO0C8_,CL2I0E2N3T_COMMAND_SIMPLE_WITH_SERVER_ID(3)