Skip to content

Commit 838d0ca

Browse files
authored
SWIFT-1409 Vendor libmongoc 1.19.2 [r1.2 backport] (#700)
1 parent d3a936e commit 838d0ca

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

Sources/CLibMongoC/include/CLibMongoC_bson-version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
*
4040
* BSON micro version component (e.g. 3 if %BSON_VERSION is 1.2.3)
4141
*/
42-
#define BSON_MICRO_VERSION (1)
42+
#define BSON_MICRO_VERSION (2)
4343

4444

4545
/**
@@ -54,7 +54,7 @@
5454
*
5555
* BSON version.
5656
*/
57-
#define BSON_VERSION (1.19.1)
57+
#define BSON_VERSION (1.19.2)
5858

5959

6060
/**
@@ -63,7 +63,7 @@
6363
* BSON version, encoded as a string, useful for printing and
6464
* concatenation.
6565
*/
66-
#define BSON_VERSION_S "1.19.1"
66+
#define BSON_VERSION_S "1.19.2"
6767

6868

6969
/**

Sources/CLibMongoC/include/CLibMongoC_mongoc-version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
*
4040
* MONGOC micro version component (e.g. 3 if %MONGOC_VERSION is 1.2.3)
4141
*/
42-
#define MONGOC_MICRO_VERSION (1)
42+
#define MONGOC_MICRO_VERSION (2)
4343

4444

4545
/**
@@ -55,7 +55,7 @@
5555
*
5656
* MONGOC version.
5757
*/
58-
#define MONGOC_VERSION (1.19.1)
58+
#define MONGOC_VERSION (1.19.2)
5959

6060

6161
/**
@@ -64,7 +64,7 @@
6464
* MONGOC version, encoded as a string, useful for printing and
6565
* concatenation.
6666
*/
67-
#define MONGOC_VERSION_S "1.19.1"
67+
#define MONGOC_VERSION_S "1.19.2"
6868

6969

7070
/**

Sources/CLibMongoC/mongoc/mongoc-topology.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,12 @@ mongoc_topology_destroy (mongoc_topology_t *topology)
563563
bson_mutex_destroy (&topology->apm_mutex);
564564
mongoc_cond_destroy (&topology->srv_polling_cond);
565565
}
566-
_mongoc_topology_description_monitor_closed (&topology->description);
566+
567+
if (topology->valid) {
568+
/* Do not emit a topology_closed event. A topology opening event was not
569+
* emitted. */
570+
_mongoc_topology_description_monitor_closed (&topology->description);
571+
}
567572

568573
mongoc_uri_destroy (topology->uri);
569574
mongoc_topology_description_destroy (&topology->description);

Tests/MongoSwiftTests/DNSSeedlistTests.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,6 @@ final class DNSSeedlistTests: MongoSwiftTestCase {
9393
// this particular test case requires SSL is disabled. see DRIVERS-1324.
9494
let requiresTLS = fileName != "txt-record-with-overridden-ssl-option.json"
9595

96-
// skipping due to a libmongoc bug. TODO: SWIFT-1343 unskip.
97-
guard fileName != "loadBalanced-replicaSet-errors.json" else {
98-
continue
99-
}
100-
10196
// TLS requirement for this test case is not met.
10297
guard (requiresTLS && MongoSwiftTestCase.ssl) || (!requiresTLS && !MongoSwiftTestCase.ssl) else {
10398
print("Skipping test file \(fileName); TLS requirement not met")

etc/vendor-libmongoc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -eou pipefail
55
PWD=`pwd`
66
LIBMONGOC_MAJOR_VERSION=1
77
LIBMONGOC_MINOR_VERSION=19
8-
LIBMONGOC_PATCH_VERSION=1
8+
LIBMONGOC_PATCH_VERSION=2
99
LIBMONGOC_PRERELEASE_VERSION=
1010

1111
LIBMONGOC_FULL_VERSION=${LIBMONGOC_MAJOR_VERSION}.${LIBMONGOC_MINOR_VERSION}.${LIBMONGOC_PATCH_VERSION}${LIBMONGOC_PRERELEASE_VERSION:+-$LIBMONGOC_PRERELEASE_VERSION}

0 commit comments

Comments
 (0)