From e315325cacd8463b32fc61f91abf05c66de7fc8c Mon Sep 17 00:00:00 2001 From: Chris Lundquist Date: Mon, 16 Jan 2012 09:44:37 -0800 Subject: [PATCH] remove commented out code --- src/write_mongodb.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/write_mongodb.c b/src/write_mongodb.c index 5ee220e1..cb4161c8 100644 --- a/src/write_mongodb.c +++ b/src/write_mongodb.c @@ -77,7 +77,6 @@ static int wm_write (const data_set_t *ds, /* {{{ */ int status; int i; bson record; - /*bson_data record_buf; */ ssnprintf(collection_name, sizeof (collection_name), "collectd.%s", vl->plugin); @@ -103,7 +102,6 @@ static int wm_write (const data_set_t *ds, /* {{{ */ } bson_finish(&record); - pthread_mutex_lock (&node->lock); if (node->connected == 0) @@ -139,14 +137,14 @@ static int wm_write (const data_set_t *ds, /* {{{ */ 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); } - + } -- 2.11.0