1MONGOC_BULK_OPERATION_SET_HINT(3M)ongoDB C DriveMrONGOC_BULK_OPERATION_SET_HINT(3)
2
3
4

NAME

6       mongoc_bulk_operation_set_hint - mongoc_bulk_operation_set_hint()
7

SYNOPSIS

9          void
10          mongoc_bulk_operation_set_hint (const mongoc_bulk_operation_t *bulk,
11                                          uint32_t server_id);
12

PARAMETERS

14       · bulk: A mongoc_bulk_operation_t.
15
16       · server_id: An opaque id identifying the server to use.
17

DESCRIPTION

19       Specifies  which  server to use for the operation. This function has an
20       effect only if called before mongoc_bulk_operation_execute.
21
22       (The function name includes the old term "hint" for the sake  of  back‐
23       ward compatibility, but we now call this number a "server id".)
24
25       Use  mongoc_bulk_operation_set_hint only for building a language driver
26       that wraps the C Driver. When writing  applications  in  C,  leave  the
27       server  id  unset  and allow the driver to choose a suitable server for
28       the bulk operation.
29

AUTHOR

31       MongoDB, Inc
32
34       2017-present, MongoDB, Inc
35
36
37
38
391.15.2                           Nov 06, 2019MONGOC_BULK_OPERATION_SET_HINT(3)
Impressum