From: Chris Lundquist Date: Mon, 16 Jan 2012 17:44:37 +0000 (-0800) Subject: remove commented out code X-Git-Tag: collectd-5.1.0~40^2~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e315325cacd8463b32fc61f91abf05c66de7fc8c;p=collectd.git remove commented out code --- 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); } - + }