We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe8afce commit b1183adCopy full SHA for b1183ad
gridfs/grid_file.py
@@ -244,14 +244,6 @@ def __flush(self):
244
self.__flush_buffer()
245
246
db = self._coll.database
247
-
248
- # See PYTHON-417, "Sharded GridFS fails with exception: chunks out
249
- # of order." Inserts via mongos, even if they use a single
250
- # connection, can succeed out-of-order due to the writebackListener.
251
- # We mustn't call "filemd5" until all inserts are complete, which
252
- # we ensure by calling getLastError (and ignoring the result).
253
- db.error()
254
255
md5 = db.command(
256
"filemd5", self._id, root=self._coll.name,
257
read_preference=ReadPreference.PRIMARY)["md5"]
0 commit comments