summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 731f60b)
raw | patch | inline | side by side (parent: 731f60b)
author | Chris Lundquist <chris.lundquist@bluebox.net> | |
Mon, 16 Jan 2012 17:44:37 +0000 (09:44 -0800) | ||
committer | Chris Lundquist <chris.lundquist@bluebox.net> | |
Tue, 24 Jan 2012 19:53:22 +0000 (11:53 -0800) |
src/write_mongodb.c | patch | blob | history |
diff --git a/src/write_mongodb.c b/src/write_mongodb.c
index 5ee220e16503d825f33be25d6c2ad49dc85ae345..cb4161c871958a85974151707c197757b5c6eac3 100644 (file)
--- a/src/write_mongodb.c
+++ b/src/write_mongodb.c
int status;
int i;
bson record;
- /*bson_data record_buf; */
ssnprintf(collection_name, sizeof (collection_name), "collectd.%s", vl->plugin);
}
bson_finish(&record);
-
pthread_mutex_lock (&node->lock);
if (node->connected == 0)
if(status != MONGO_OK)
{
ERROR ( "write_mongodb plugin: error inserting record: %d", node->conn->err);
- if(node->conn->err == MONGO_BSON_INVALID)
+ if(node->conn->err == MONGO_BSON_INVALID)
{
ERROR (node->conn->errstr);
} else if ( record.err)
{
ERROR (record.errstr);
}
-
+
}