Insert chunks into GridFS with safe=True to avoid out-of-order inserts via mongos PYTHON-417
Insert chunks into GridFS with safe=True to avoid out-of-order inserts via mongos PYTHON-417

Inserts into fs.chunks via mongos, even though they're using a single
connection, can succeed out-of-order due to the writebackListener.
We mustn't call "filemd5" until all inserts are complete, which we
ensure by calling getLastError after inserting each chunk.

jameslittle/mongo-python-driver,mongodb/mongo-python-driver,inspectlabs/mongo-python-driver,mongodb/mongo-python-driver,aherlihy/mongo-python-driver,ameily/mongo-python-driver,pigate/mongo-python-driver,llvtt/mongo-python-driver,ShaneHarvey/mongo-python-driver,WingGao/mongo-python-driver,felixonmars/mongo-python-driver,brianwrf/mongo-python-driver,develf/mongo-python-driver,felixonmars/mongo-python-driver,ramnes/mongo-python-driver,bq-xiao/mongo-python-driver,ramnes/mongo-python-driver,ultrabug/mongo-python-driver,bq-xiao/mongo-python-driver,rychipman/mongo-python-driver,aherlihy/mongo-python-driver,ShaneHarvey/mongo-python-driver,gormanb/mongo-python-driver,gormanb/mongo-python-driver,ramnes/mongo-python-driver,macdiesel/mongo-python-driver,pigate/mongo-python-driver,rychipman/mongo-python-driver,mongodb/mongo-python-driver,ShaneHarvey/mongo-python-driver,macdiesel/mongo-python-driver,ultrabug/mongo-python-driver,inspectlabs/mongo-python-driver,WingGao/mongo-python-driver,jameslittle/mongo-python-driver,llvtt/mongo-python-driver,brianwrf/mongo-python-driver,develf/mongo-python-driver,aherlihy/mongo-python-driver,ameily/mongo-python-driver