Fix cursor hinting

The .hint method should be applied on the cursor object instead
of the DBObject contained in the hint field.
This commit is contained in:
Stijn Opheide 2016-01-06 12:00:08 +01:00 committed by Michael Klishin
parent 7195f77945
commit dd890231ee

View file

@ -106,7 +106,7 @@
(when snapshot
(.snapshot cursor))
(when hint
(.hint (to-db-object hint)))
(.hint cursor (to-db-object hint)))
(when read-preference
(.setReadPreference cursor read-preference))
(when options