Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Don't specify a size for an uncapped collection
Browse files Browse the repository at this point in the history
If we're making an uncapped collection there is no reason to pass in a
size parameter.
  • Loading branch information
Paul M Furley authored and jcbashdown committed Mar 27, 2014
1 parent fe6f4c5 commit f2a2472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backdrop/core/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def collection_exists(self, collection_name):

def create_uncapped_collection(self, collection_name):
return self.mongo_database.create_collection(
name=collection_name, capped=False, size=0)
name=collection_name, capped=False)

def create_capped_collection(self, collection_name, capped_size):
return self.mongo_database.create_collection(name=collection_name,
Expand Down

0 comments on commit f2a2472

Please sign in to comment.