Skip to content

Commit 6b3f861

Browse files
committed
Remove obsolete comments about collection size limits.
1 parent cf9dca6 commit 6b3f861

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

pymongo/collection.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@ def __create(self, options):
118118
"""Sends a create command with the given options.
119119
"""
120120

121-
# Send size as a float, not an int/long. BSON can only handle 32-bit
122-
# ints which conflicts w/ max collection size of 10000000000.
123121
if options:
124122
if "size" in options:
125123
options["size"] = float(options["size"])

pymongo/database.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,8 @@ def create_collection(self, name, **kwargs):
218218
method. Any of the following options are valid:
219219
220220
- "size": desired initial size for the collection (in
221-
bytes). must be less than or equal to 10000000000. For
222-
capped collections this size is the max size of the
223-
collection.
221+
bytes). For capped collections this size is the max
222+
size of the collection.
224223
- "capped": if True, this is a capped collection
225224
- "max": maximum number of objects if capped (optional)
226225

0 commit comments

Comments
 (0)