Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 325432 Details for
Bug 436538
app-admin/collectd-5.1.0-r1 USE=collectd_plugins_write_mongodb should depend on dev-libs/mongo-c-driver
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
collectd-5.1.0-mongoc06.patch
collectd-5.1.0-mongoc06.patch (text/plain), 824 bytes, created by
Johan Bergström
on 2012-10-01 03:10:09 UTC
(
hide
)
Description:
collectd-5.1.0-mongoc06.patch
Filename:
MIME Type:
Creator:
Johan Bergström
Created:
2012-10-01 03:10:09 UTC
Size:
824 bytes
patch
obsolete
>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);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 436538
: 325432