diff options
Diffstat (limited to 'app-admin/collectd/files/collectd-5.1.0-mongoc06.patch')
-rw-r--r-- | app-admin/collectd/files/collectd-5.1.0-mongoc06.patch | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/app-admin/collectd/files/collectd-5.1.0-mongoc06.patch b/app-admin/collectd/files/collectd-5.1.0-mongoc06.patch deleted file mode 100644 index a0c4d552d3f6..000000000000 --- a/app-admin/collectd/files/collectd-5.1.0-mongoc06.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff --git a/src/write_mongodb.c b/src/write_mongodb.c -index 8d76b60..c7b7682 100644 ---- a/src/write_mongodb.c -+++ b/src/write_mongodb.c -@@ -195,7 +195,14 @@ static int wm_write (const data_set_t *ds, /* {{{ */ - /* Assert if the connection has been established */ - assert (mongo_is_connected (node->conn)); - -- status = mongo_insert (node->conn, collection_name, bson_record); -+ #if MONGO_MINOR >= 6 -+ /* There was an API change in 0.6.0 as linked below */ -+ /* https://github.com/mongodb/mongo-c-driver/blob/master/HISTORY.md */ -+ status = mongo_insert (node->conn, collection_name, bson_record, NULL); -+ #else -+ status = mongo_insert (node->conn, collection_name, bson_record); -+ #endif -+ - if(status != MONGO_OK) - { - ERROR ( "write_mongodb plugin: error inserting record: %d", node->conn->err);
\ No newline at end of file |