summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5752003)
raw | patch | inline | side by side (parent: 5752003)
author | Chris Lundquist <clundquist@bluebox.net> | |
Tue, 17 Jan 2012 05:10:46 +0000 (21:10 -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 900fb8786b6e6aaa00d98c83faf812e033cdb9dd..5ee220e16503d825f33be25d6c2ad49dc85ae345 100644 (file)
--- a/src/write_mongodb.c
+++ b/src/write_mongodb.c
else
assert (23 == 42);
}
+ bson_finish(&record);
pthread_mutex_lock (&node->lock);
if(status != MONGO_OK)
{
- ERROR ( "write_mongodb plugin: error inserting record: ");
+ ERROR ( "write_mongodb plugin: error inserting record: %d", node->conn->err);
if(node->conn->err == MONGO_BSON_INVALID)
+ {
+ ERROR (node->conn->errstr);
+ } else if ( record.err)
{
ERROR (record.errstr);
}
+
}