Skip to content

Commit 1d49210

Browse files
committed
CDRIVER-2875 spawning and logging
- add bypass_cooldown for single threaded clients
1 parent 1de613a commit 1d49210

9 files changed

+484
-41
lines changed

src/libmongoc/doc/mongoc_auto_encryption_opts_set_extra.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ Parameters
1919
* ``opts``: The :symbol:`mongoc_auto_encryption_opts_t`
2020
* ``extra``: A :symbol:`bson_t` of additional options.
2121

22+
``extra`` is a :symbol:`bson_t` containing any of the following optional fields:
23+
24+
* ``mongocryptdURI`` set to a URI to connect to the mongocryptd process (default is "mongodb://localhost:27027").
25+
* ``mongocryptdBypassSpawn`` set to true to prevent the driver from spawning the mongocryptd process (default behavior is to spawn).
26+
* ``mongocryptdSpawnPath`` set to a path (with trailing slash) to search for mongocryptd (defaults to empty string and uses default system paths).
27+
* ``mongocryptdSpawnArgs`` set to an array of string arguments to pass to ``mongocryptd`` when spawning (defaults to ``[ "--idleShutdownTimeoutSecs=60" ]``).
28+
29+
For more information, see the `Client-Side Encryption specification <https://github.com/mongodb/specifications/blob/master/source/client-side-encryption/client-side-encryption.rst#extraoptions>`_.
30+
2231
See also
2332
--------
2433

src/libmongoc/src/mongoc/mongoc-client-side-encryption-private.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,9 @@ _mongoc_cse_enable_auto_encryption (
4646
mongoc_auto_encryption_opts_t *opts /* may be NULL */,
4747
bson_error_t *error);
4848

49+
bool
50+
_mongoc_fle_spawn_mongocryptd (const char *mongocryptd_spawn_path,
51+
const bson_iter_t *mongocryptd_spawn_args,
52+
bson_error_t *error);
53+
4954
#endif /* MONGOC_CLIENT_SIDE_ENCRYPTION_PRIVATE_H */

0 commit comments

Comments
 (0)