1MONGOC_CURSOR_GET_HINT(3) libmongoc MONGOC_CURSOR_GET_HINT(3)
2
3
4
6 uint32_t
7 mongoc_cursor_get_hint (const mongoc_cursor_t *cursor);
8
10 • cursor: A mongoc_cursor_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 when exe‐
19 cuting the find operation or mongoc_cursor_set_hint() is called.
20
22 MongoDB, Inc
23
25 2017-present, MongoDB, Inc
26
27
28
29
301.25.1 Nov 08, 2023 MONGOC_CURSOR_GET_HINT(3)