else
assert (23 == 42);
}
+ /* We must finish the record, other wise the insert will fail */
bson_finish(&record);
pthread_mutex_lock (&node->lock);
}
pthread_mutex_unlock (&node->lock);
+ /* free our resource as not to leak memory */
+ bson_destroy(&record);
return (0);
} /* }}} int wm_write */