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
parent 85560e17f8
commit b0df70f279

View file

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