PYTHON-807 Avoid DeprecationWarning in GridIn.close().
This commit is contained in:
parent
753356a723
commit
8e794bc8fe
@ -256,7 +256,7 @@ class GridIn(object):
|
||||
# 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 (and ignoring the result).
|
||||
db.error()
|
||||
db.command('getlasterror', read_preference=ReadPreference.PRIMARY)
|
||||
|
||||
md5 = db.command(
|
||||
"filemd5", self._id, root=self._coll.name,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user