1MONGOC_CURSOR_GET_HINT(3) libmongoc MONGOC_CURSOR_GET_HINT(3)
2
3
4
6 mongoc_cursor_get_hint - mongoc_cursor_get_hint()
7
9 uint32_t
10 mongoc_cursor_get_hint (const mongoc_cursor_t *cursor);
11
13 · cursor: A mongoc_cursor_t.
14
16 Retrieves the opaque id of the server used for the operation.
17
18 (The function name includes the old term "hint" for the sake of back‐
19 ward compatibility, but we now call this number a "server id".)
20
21 This number is zero until the driver actually uses a server when exe‐
22 cuting the find operation or mongoc_cursor_set_hint is called.
23
25 MongoDB, Inc
26
28 2017-present, MongoDB, Inc
29
30
31
32
331.16.2 Feb 25, 2020 MONGOC_CURSOR_GET_HINT(3)