1MONGOC_BULK_OPERATION_GET_HINT(3) libmongoc MONGOC_BULK_OPERATION_GET_HINT(3)
2
3
4
6 uint32_t
7 mongoc_bulk_operation_get_hint (const mongoc_bulk_operation_t *bulk);
8
10 • bulk: A mongoc_bulk_operation_t.
11
13 Retrieves the opaque id of the server used for the operation.
14
15 (The function name includes the old term "hint" for the sake of back‐
16 ward compatibility, but we now call this number a "server id".)
17
18 This number is zero until the driver actually uses a server in
19 mongoc_bulk_operation_execute(). The server id is the same number as
20 the return value of a successful mongoc_bulk_operation_execute(), so
21 mongoc_bulk_operation_get_hint is useful mainly in case
22 mongoc_bulk_operation_execute() fails and returns zero.
23
25 MongoDB, Inc
26
28 2017-present, MongoDB, Inc
29
30
31
32
331.25.1 Nov 08, 2023MONGOC_BULK_OPERATION_GET_HINT(3)