1MONGOC_BULK_OPERATION_SET_HINT(3) libmongoc MONGOC_BULK_OPERATION_SET_HINT(3)
2
3
4
6 void
7 mongoc_bulk_operation_set_hint (const mongoc_bulk_operation_t *bulk,
8 uint32_t server_id);
9
11 • bulk: A mongoc_bulk_operation_t.
12
13 • server_id: An opaque id identifying the server to use.
14
16 Specifies which server to use for the operation. This function has an
17 effect only if called before mongoc_bulk_operation_execute().
18
19 (The function name includes the old term "hint" for the sake of back‐
20 ward compatibility, but we now call this number a "server id".)
21
22 Use mongoc_bulk_operation_set_hint only for building a language driver
23 that wraps the C Driver. When writing applications in C, leave the
24 server id unset and allow the driver to choose a suitable server for
25 the bulk operation.
26
28 MongoDB, Inc
29
31 2017-present, MongoDB, Inc
32
33
34
35
361.25.1 Nov 08, 2023MONGOC_BULK_OPERATION_SET_HINT(3)