B-0 moved hack when calculating position of file for the purpose of flushing from mongoc_gridfs_file_writev() to _mongoc_gridfs_file_flush_page(). Before it was causing flushing to flush to database a page thinking it was the next page when pointer was right at the end (in reality on the next byte, ready to write the next page) therefore rendering the file broken.
B-0 moved hack when calculating position of file for the purpose of flushing from mongoc_gridfs_file_writev() to _mongoc_gridfs_file_flush_page().
Before it was causing flushing to flush to database a page thinking it was the next page when pointer was right at the end (in reality on the next byte, ready to write the next page) therefore rendering the file broken.

jsbattig/mongo-c-driver,Convey-Compliance/mongo-c-driver,Convey-Compliance/mongo-c-driver,eugene-convey/mongo-c-driver,Convey-Compliance/mongo-c-driver,jsbattig/mongo-c-driver,eugene-convey/mongo-c-driver,eugene-convey/mongo-c-driver,Convey-Compliance/mongo-c-driver,jsbattig/mongo-c-driver,Convey-Compliance/mongo-c-driver