Skip to content

Commit 570245c

Browse files
Bogdan0x400craiggwilson
authored andcommitted
CSHARP-1000: $maxscan should be spelled as $maxScan
SetMaxScan method added $maxscan option instead of $maxScan option which resulted in that option being ignored by mongod.
1 parent c3aead8 commit 570245c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MongoDB.Driver/MongoCursor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ public virtual MongoCursor SetMax(BsonDocument max)
493493
public virtual MongoCursor SetMaxScan(int maxScan)
494494
{
495495
if (_isFrozen) { ThrowFrozen(); }
496-
SetOption("$maxscan", maxScan);
496+
SetOption("$maxScan", maxScan);
497497
return this;
498498
}
499499

0 commit comments

Comments
 (0)