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);
}
-
+
}