ast_mongo
ast_mongo copied to clipboard
Update deprecated mongoc function with new one
From MongoDB C Driver 1.5.0, the following function has been deprecated
Deprecated function | New function |
---|---|
mongoc_collection_find | mongoc_collection_find_with_opts |
==> default: res_config_mongodb.c: In function ‘realtime’:
==> default: res_config_mongodb.c:448:9: warning: ‘mongoc_collection_find’ is deprecated: Use mongoc_collection_find_with_opts instead [-Wdeprecated-declarations]
==> default: cursor = mongoc_collection_find(collection, MONGOC_QUERY_NONE, 0, 1, 0, query, NULL, NULL);
==> default: ^
==> default: In file included from /usr/local/include/libmongoc-1.0/mongoc-client.h:27:0,
==> default: from /usr/local/include/libmongoc-1.0/mongoc.h:27,
==> default: from /home/vagrant/asterisk-14.2.1/include/asterisk/res_mongodb.h:17,
==> default: from res_config_mongodb.c:44:
==> default: /usr/local/include/libmongoc-1.0/mongoc-collection.h:143:1: note: declared here
==> default: mongoc_collection_find (mongoc_collection_t *collection,
==> default: ^
==> default: res_config_mongodb.c: In function ‘realtime_multi’:
==> default: res_config_mongodb.c:588:9: warning: ‘mongoc_collection_find’ is deprecated: Use mongoc_collection_find_with_opts instead [-Wdeprecated-declarations]
==> default: cursor = mongoc_collection_find(collection, MONGOC_QUERY_NONE, 0, 0, 0, query, NULL, NULL);
==> default: ^
==> default: In file included from /usr/local/include/libmongoc-1.0/mongoc-client.h:27:0,
==> default: from /usr/local/include/libmongoc-1.0/mongoc.h:27,
==> default: from /home/vagrant/asterisk-14.2.1/include/asterisk/res_mongodb.h:17,
==> default: from res_config_mongodb.c:44:
==> default: /usr/local/include/libmongoc-1.0/mongoc-collection.h:143:1: note: declared here
==> default: mongoc_collection_find (mongoc_collection_t *collection,
==> default: ^
==> default: res_config_mongodb.c: In function ‘load’:
==> default: res_config_mongodb.c:946:9: warning: ‘mongoc_collection_find’ is deprecated: Use mongoc_collection_find_with_opts instead [-Wdeprecated-declarations]
==> default: cursor = mongoc_collection_find(collection, MONGOC_QUERY_NONE, 0, 0, 0, root, fields, NULL);
==> default: ^
==> default: In file included from /usr/local/include/libmongoc-1.0/mongoc-client.h:27:0,
==> default: from /usr/local/include/libmongoc-1.0/mongoc.h:27,
==> default: from /home/vagrant/asterisk-14.2.1/include/asterisk/res_mongodb.h:17,
==> default: from res_config_mongodb.c:44:
==> default: /usr/local/include/libmongoc-1.0/mongoc-collection.h:143:1: note: declared here
==> default: mongoc_collection_find (mongoc_collection_t *collection,
==> default: ^