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