Skip to content

Commit 96a79b2

Browse files
committed
Fix mongoc_uri_get_compressors docs
1 parent b87a848 commit 96a79b2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/libmongoc/doc/mongoc_uri_get_compressors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Parameters
1919
Description
2020
-----------
2121

22-
Returns a bson document with the enabled compressors as the keys if ``uri`` has compressors provided, otherwise ``NULL``.
22+
Returns a bson document with the enabled compressors as the keys or an empty document if no compressors were provided.
2323

2424
Example
2525
-------

src/libmongoc/tests/test-mongoc-uri.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,8 @@ test_mongoc_uri_compressors (void)
10021002

10031003
uri = mongoc_uri_new ("mongodb://localhost/");
10041004

1005+
ASSERT (bson_empty (mongoc_uri_get_compressors (uri)));
1006+
10051007
#ifdef MONGOC_ENABLE_COMPRESSION_SNAPPY
10061008
capture_logs (true);
10071009
mongoc_uri_set_compressors (uri, "snappy,unknown");

0 commit comments

Comments
 (0)