|
| 1 | +diff --git a/src/libmongoc/src/mongoc/mongoc-collection.c b/src/libmongoc/src/mongoc/mongoc-collection.c |
| 2 | +index d21a043788..ac0194e477 100644 |
| 3 | +--- a/src/libmongoc/src/mongoc/mongoc-collection.c |
| 4 | ++++ b/src/libmongoc/src/mongoc/mongoc-collection.c |
| 5 | +@@ -681,6 +681,7 @@ mongoc_collection_command_simple (mongoc_collection_t *collection, |
| 6 | + *-------------------------------------------------------------------------- |
| 7 | + */ |
| 8 | + |
| 9 | ++BEGIN_IGNORE_DEPRECATIONS |
| 10 | + int64_t |
| 11 | + mongoc_collection_count (mongoc_collection_t *collection, /* IN */ |
| 12 | + mongoc_query_flags_t flags, /* IN */ |
| 13 | +@@ -705,13 +706,12 @@ mongoc_collection_count (mongoc_collection_t *collection, /* IN */ |
| 14 | + /* Server Selection Spec: "may-use-secondary" commands SHOULD take a read |
| 15 | + * preference argument and otherwise MUST use the default read preference |
| 16 | + * from client, database or collection configuration. */ |
| 17 | +- BEGIN_IGNORE_DEPRECATIONS |
| 18 | + ret = mongoc_collection_count_with_opts (collection, flags, query, skip, limit, &opts, read_prefs, error); |
| 19 | +- END_IGNORE_DEPRECATIONS |
| 20 | + |
| 21 | + bson_destroy (&opts); |
| 22 | + return ret; |
| 23 | + } |
| 24 | ++END_IGNORE_DEPRECATIONS |
| 25 | + |
| 26 | + |
| 27 | + int64_t |
| 28 | +@@ -1231,6 +1231,7 @@ mongoc_collection_keys_to_index_string (const bson_t *keys) |
| 29 | + } |
| 30 | + |
| 31 | + |
| 32 | ++BEGIN_IGNORE_DEPRECATIONS |
| 33 | + bool |
| 34 | + mongoc_collection_create_index (mongoc_collection_t *collection, |
| 35 | + const bson_t *keys, |
| 36 | +@@ -1240,15 +1241,14 @@ mongoc_collection_create_index (mongoc_collection_t *collection, |
| 37 | + bson_t reply; |
| 38 | + bool ret; |
| 39 | + |
| 40 | +- BEGIN_IGNORE_DEPRECATIONS |
| 41 | + |
| 42 | + ret = mongoc_collection_create_index_with_opts (collection, keys, opt, NULL, &reply, error); |
| 43 | + |
| 44 | +- END_IGNORE_DEPRECATIONS |
| 45 | + |
| 46 | + bson_destroy (&reply); |
| 47 | + return ret; |
| 48 | + } |
| 49 | ++END_IGNORE_DEPRECATIONS |
| 50 | + |
| 51 | + static bool |
| 52 | + _mongoc_collection_index_keys_equal (const bson_t *expected, const bson_t *actual) |
| 53 | +@@ -1578,16 +1578,16 @@ done: |
| 54 | + } |
| 55 | + |
| 56 | + |
| 57 | ++BEGIN_IGNORE_DEPRECATIONS |
| 58 | + bool |
| 59 | + mongoc_collection_ensure_index (mongoc_collection_t *collection, |
| 60 | + const bson_t *keys, |
| 61 | + const mongoc_index_opt_t *opt, |
| 62 | + bson_error_t *error) |
| 63 | + { |
| 64 | +- BEGIN_IGNORE_DEPRECATIONS |
| 65 | + return mongoc_collection_create_index (collection, keys, opt, error); |
| 66 | +- END_IGNORE_DEPRECATIONS |
| 67 | + } |
| 68 | ++END_IGNORE_DEPRECATIONS |
| 69 | + |
| 70 | + |
| 71 | + mongoc_cursor_t * |
| 72 | +@@ -2317,6 +2317,7 @@ mongoc_collection_replace_one (mongoc_collection_t *collection, |
| 73 | + *-------------------------------------------------------------------------- |
| 74 | + */ |
| 75 | + |
| 76 | ++BEGIN_IGNORE_DEPRECATIONS |
| 77 | + bool |
| 78 | + mongoc_collection_save (mongoc_collection_t *collection, |
| 79 | + const bson_t *document, |
| 80 | +@@ -2330,7 +2331,6 @@ mongoc_collection_save (mongoc_collection_t *collection, |
| 81 | + BSON_ASSERT_PARAM (collection); |
| 82 | + BSON_ASSERT_PARAM (document); |
| 83 | + |
| 84 | +- BEGIN_IGNORE_DEPRECATIONS |
| 85 | + if (!bson_iter_init_find (&iter, document, "_id")) { |
| 86 | + return mongoc_collection_insert (collection, MONGOC_INSERT_NONE, document, write_concern, error); |
| 87 | + } |
| 88 | +@@ -2350,12 +2350,12 @@ mongoc_collection_save (mongoc_collection_t *collection, |
| 89 | + |
| 90 | + ret = mongoc_collection_update ( |
| 91 | + collection, MONGOC_UPDATE_UPSERT | MONGOC_UPDATE_NO_VALIDATE, &selector, document, write_concern, error); |
| 92 | +- END_IGNORE_DEPRECATIONS |
| 93 | + |
| 94 | + bson_destroy (&selector); |
| 95 | + |
| 96 | + return ret; |
| 97 | + } |
| 98 | ++END_IGNORE_DEPRECATIONS |
| 99 | + |
| 100 | + |
| 101 | + bool |
| 102 | +diff --git a/src/libmongoc/src/mongoc/mongoc-stream-tls.c b/src/libmongoc/src/mongoc/mongoc-stream-tls.c |
| 103 | +index 744fdc4089..252d6209f3 100644 |
| 104 | +--- a/src/libmongoc/src/mongoc/mongoc-stream-tls.c |
| 105 | ++++ b/src/libmongoc/src/mongoc/mongoc-stream-tls.c |
| 106 | +@@ -187,6 +187,7 @@ mongoc_stream_tls_check_cert (mongoc_stream_t *stream, const char *host) |
| 107 | + *-------------------------------------------------------------------------- |
| 108 | + */ |
| 109 | + |
| 110 | ++BEGIN_IGNORE_DEPRECATIONS |
| 111 | + mongoc_stream_t * |
| 112 | + mongoc_stream_tls_new_with_hostname (mongoc_stream_t *base_stream, const char *host, mongoc_ssl_opt_t *opt, int client) |
| 113 | + { |
| 114 | +@@ -208,9 +209,7 @@ mongoc_stream_tls_new_with_hostname (mongoc_stream_t *base_stream, const char *h |
| 115 | + #if defined(MONGOC_ENABLE_SSL_OPENSSL) |
| 116 | + return mongoc_stream_tls_openssl_new (base_stream, host, opt, client); |
| 117 | + #elif defined(MONGOC_ENABLE_SSL_LIBRESSL) |
| 118 | +- BEGIN_IGNORE_DEPRECATIONS |
| 119 | + return mongoc_stream_tls_libressl_new (base_stream, host, opt, client); |
| 120 | +- END_IGNORE_DEPRECATIONS |
| 121 | + #elif defined(MONGOC_ENABLE_SSL_SECURE_TRANSPORT) |
| 122 | + return mongoc_stream_tls_secure_transport_new (base_stream, host, opt, client); |
| 123 | + #elif defined(MONGOC_ENABLE_SSL_SECURE_CHANNEL) |
| 124 | +@@ -219,6 +218,7 @@ mongoc_stream_tls_new_with_hostname (mongoc_stream_t *base_stream, const char *h |
| 125 | + #error "Don't know how to create TLS stream" |
| 126 | + #endif |
| 127 | + } |
| 128 | ++END_IGNORE_DEPRECATIONS |
| 129 | + |
| 130 | + #if defined(MONGOC_ENABLE_SSL_OPENSSL) && OPENSSL_VERSION_NUMBER >= 0x10100000L |
| 131 | + /* |
| 132 | +diff --git a/src/libmongoc/src/mongoc/mongoc-write-concern.c b/src/libmongoc/src/mongoc/mongoc-write-concern.c |
| 133 | +index 82ac8d3c32..10b8585c1c 100644 |
| 134 | +--- a/src/libmongoc/src/mongoc/mongoc-write-concern.c |
| 135 | ++++ b/src/libmongoc/src/mongoc/mongoc-write-concern.c |
| 136 | +@@ -492,6 +492,7 @@ mongoc_write_concern_append (mongoc_write_concern_t *write_concern, bson_t *comm |
| 137 | + * Returns: A newly allocated mongoc_write_concern_t. This should be freed |
| 138 | + * with mongoc_write_concern_destroy(). |
| 139 | + */ |
| 140 | ++BEGIN_IGNORE_DEPRECATIONS |
| 141 | + mongoc_write_concern_t * |
| 142 | + _mongoc_write_concern_new_from_iter (const bson_iter_t *iter, bson_error_t *error) |
| 143 | + { |
| 144 | +@@ -532,9 +533,7 @@ _mongoc_write_concern_new_from_iter (const bson_iter_t *iter, bson_error_t *erro |
| 145 | + if (!BSON_ITER_HOLDS_BOOL (&inner)) { |
| 146 | + goto fail; |
| 147 | + } |
| 148 | +- BEGIN_IGNORE_DEPRECATIONS |
| 149 | + mongoc_write_concern_set_fsync (write_concern, bson_iter_bool (&inner)); |
| 150 | +- END_IGNORE_DEPRECATIONS |
| 151 | + } else if (BSON_ITER_IS_KEY (&inner, "j")) { |
| 152 | + if (!BSON_ITER_HOLDS_BOOL (&inner)) { |
| 153 | + goto fail; |
| 154 | +@@ -560,3 +559,4 @@ fail: |
| 155 | + mongoc_write_concern_destroy (write_concern); |
| 156 | + return NULL; |
| 157 | + } |
| 158 | ++END_IGNORE_DEPRECATIONS |
0 commit comments