diff options
author | dwight <dwight@10gen.com> | 2011-06-11 12:55:46 -0400 |
---|---|---|
committer | dwight <dwight@10gen.com> | 2011-06-11 12:55:46 -0400 |
commit | bfe34b198501dba079ecc33b2c2b36d4d60ae564 (patch) | |
tree | d8561b97e6d0e78f7de82ef33856a15597f3c071 /client | |
parent | 8db6995de230148d4187e8880408c0f4bb29698a (diff) | |
download | mongo-bfe34b198501dba079ecc33b2c2b36d4d60ae564.tar.gz |
doesnt make much sense to specify capped without a size so check for that
Diffstat (limited to 'client')
-rw-r--r-- | client/dbclient.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/client/dbclient.cpp b/client/dbclient.cpp index ddeb56fa549..c079abad65e 100644 --- a/client/dbclient.cpp +++ b/client/dbclient.cpp @@ -391,6 +391,7 @@ namespace mongo { } bool DBClientWithCommands::createCollection(const string &ns, long long size, bool capped, int max, BSONObj *info) { + assert(!capped||size); BSONObj o; if ( info == 0 ) info = &o; BSONObjBuilder b; |