0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
Commit Graph

644 Commits

Author SHA1 Message Date
Mike Dirolf
f20838c3f3 minor: use is_directory for old versions of boost 2009-09-21 12:02:45 -04:00
Mike Dirolf
42081471db don't remove and recreate data directory for tests, just remove contents 2009-09-21 11:51:06 -04:00
Mike Dirolf
91b5884ffe minor: just use std::runtime_error to be compatable with older versions of boost 2009-09-18 18:30:19 -04:00
Mike Dirolf
4a3c382889 minor: ignore errors when resetting unittest directory, for joyent buildslave 2009-09-18 18:14:15 -04:00
Mike Dirolf
c2f6c92778 minor: oops move include 2009-09-18 17:48:30 -04:00
Mike Dirolf
a3ddeea651 move CLI related stuff out of dbtests and perftest and into framework 2009-09-18 17:38:07 -04:00
Mike Dirolf
9843186141 minor: whitespace 2009-09-18 16:34:02 -04:00
Eliot Horowitz
5e8ddfa4e3 Merge branch 'master' of git@github.com:mongodb/mongo 2009-09-18 14:36:21 -04:00
Eliot Horowitz
5d08c9eb22 perftests to new unit test framework 2009-09-18 14:33:21 -04:00
Mike Dirolf
a2261b1eb6 minor: specify mongo namespace to avoid clash on windows 2009-09-18 14:26:15 -04:00
Mike Dirolf
53e89efce6 minor: whitespace 2009-09-18 14:25:23 -04:00
Mike Dirolf
35e2907814 minor: don't try to demangle on windows - no abi 2009-09-18 14:24:10 -04:00
Mike Dirolf
8f1e6bb3bf use boost::program_options for test runner 2009-09-18 13:55:58 -04:00
Mike Dirolf
e86a0840aa minor: whitespace 2009-09-18 13:55:58 -04:00
Eliot Horowitz
34e48aaf5d new unit test framework 2009-09-17 17:23:38 -04:00
Eliot Horowitz
03404026b9 external srot for BSONObj and DiskLoc SERVER-291 2009-09-16 15:26:18 -04:00
Eliot Horowitz
0c0a3893e4 option to appendOID to gen _id 2009-09-15 14:50:17 -04:00
Mike Dirolf
94f07156f7 update parser for new strict ObjectId JSON format. allow $id in field names since we need to for new-style DBRefs. 2009-09-15 12:14:00 -04:00
Mike Dirolf
163db42954 failing test for new style dbrefs 2009-09-15 12:14:00 -04:00
Mike Dirolf
bde9da79b6 minor: whitespace 2009-09-15 12:13:47 -04:00
Eliot Horowitz
0cb4b01795 fix SERVER-282 - BSONObj::extractFields 2009-09-09 12:25:02 -04:00
Eliot Horowitz
927078af78 normalize sort order - put null first 2009-09-09 11:51:23 -04:00
Eliot Horowitz
e9e472c119 whitespace and tests for SERVER-282 b/c i made a git mistake 2009-09-09 09:49:27 -04:00
Eliot Horowitz
4e225bb303 some tests for SERVER-282 2009-09-09 09:48:37 -04:00
Eliot Horowitz
1f69aa1f1b forgot to commit tests for $pop and repl SERVER-100 2009-09-07 23:44:12 -04:00
Aaron
04c9565d4d add Pop and PopReverse tests for SERVER-260 2009-09-07 14:19:41 -07:00
Aaron
4a7330fd22 SERVER-100 generate precise btree intervals in FieldRangeSet::indexBounds 2009-09-07 13:49:22 -07:00
Aaron
6840c4e03a SERVER-100 checkpoint move index bounding code to FieldRangeSet 2009-09-07 11:44:41 -07:00
Aaron
05b8207cc0 MINOR SERVER-100 specific tests for FieldBound operations 2009-09-07 10:39:32 -07:00
Aaron Staple
b4ed11064c SERVER-100 checkpoint FieldRange more fine grained bounds using 2009-09-06 20:34:28 -07:00
Eliot Horowitz
08fcfcb34c use canonicalType in a couple more places - make symbol test work 2009-08-27 10:19:58 -04:00
Eliot Horowitz
5a732ac0e2 symbol test not working yet 2009-08-27 09:41:56 -04:00
Eliot Horowitz
d0a925b7e4 null is now after Int 2009-08-25 12:24:51 -04:00
Dwight
2706a28123 begin cmdline.h 2009-08-25 10:24:44 -04:00
Eliot Horowitz
360dc900a0 test for broken indexing thing - doesn't assert - just prints 2009-08-25 02:24:27 -04:00
Aaron Staple
9fd0168eff SERVER-100 checkpoint field range organization improvements 2009-08-11 16:43:30 -04:00
Aaron Staple
714de2af68 SERVER-100 checkpoint btree cursor can take multiple ranges 2009-08-11 16:42:27 -04:00
Eliot Horowitz
01ff742b4e changed dbpath to std::string 2009-08-11 14:29:03 -04:00
Aaron Staple
671cf3ddd4 MINOR merge / fix namespace test failure 2009-08-11 02:36:38 -04:00
Aaron Staple
63b8f32e13 Merge branch 'master' of git@github.com:mongodb/mongo 2009-08-11 01:43:03 -04:00
Eliot Horowitz
af27a6594d append(Min|Max)ForType - so that range queries can be made smarter SERVER-177 2009-08-10 17:08:43 -04:00
Eliot Horowitz
1e5118fac5 make dbtest shutdown cleanly 2009-08-06 11:32:35 -04:00
Eliot Horowitz
79be4b64a3 clean up dbexit with an ExitCode enum SERVER-183 2009-08-05 16:00:27 -04:00
Aaron Staple
137f185298 SERVER-62 generate keys for more complex array arrangements, also ensure generation of null key and semi-null keys 2009-08-03 14:32:23 -04:00
Eliot Horowitz
6746cd2493 get rid of Option_ALLFLAGS 2009-07-29 11:16:33 -04:00
Eliot Horowitz
0c46e6dd8f change boost includes around for compatability 2009-07-24 10:53:46 -04:00
Aaron Staple
d5b720a5e6 Merge branch 'master' of git@github.com:mongodb/mongo 2009-07-22 17:30:42 -04:00
Aaron Staple
c477ed3a15 bug SERVER-132 implemented pullAll/pushAll modifiers 2009-07-21 18:37:30 -04:00
Eliot Horowitz
f6aebb421f update tests to match array matching change MINOR 2009-07-17 16:02:25 -04:00
Aaron Staple
1a600bd3b2 BUG SERVER-130 pull modifier implemented 2009-07-15 17:05:38 -04:00
Dwight
b4f0a2c1fb fix broken test file from last commit 2009-07-07 14:12:53 -04:00
Eliot Horowitz
7bb37b3fd2 fix $(gl)te? scanning for numeric indexes SERVER-99 2009-07-06 10:42:22 -04:00
Eliot Horowitz
70fcf37769 cimpile IdSet MINOR 2009-07-02 20:18:39 -04:00
Eliot Horowitz
bc7a53daf4 make warning show up in buildbot if triggered MINOR 2009-06-30 13:46:12 -04:00
Eliot Horowitz
ea32d7806c fix $in with NumberInt, NumberDouble SERVER-113 2009-06-24 14:03:35 -04:00
Eliot Horowitz
004cd26dee fix appending BSONElement via << 2009-06-13 23:30:03 -04:00
Eliot Horowitz
7c8f6d5b1c add var test that already worked MINOR 2009-06-11 20:15:01 -04:00
Eliot Horowitz
6b1d43b3b1 finish SERVER-101 move BSONObjIterator::_more to BSONObjIterator::more 2009-06-09 12:32:04 -04:00
Eliot Horowitz
00df88c21d moved BSONObjIterator::more to BSONObjectIteratore::moreWEOO()
added _more temporarily
SERVER-101
2009-06-09 11:43:04 -04:00
Eliot Horowitz
d2bbdd7941 BinData for spider monkey SERVER-97 2009-06-05 09:54:35 -04:00
Eliot Horowitz
b2defb1b7e db ref for javascript and shell SERVER-46 2009-06-03 13:18:50 -04:00
Eliot Horowitz
d6811aaaad CodeWScope SERVER-80 2009-06-01 12:53:24 -04:00
Aaron
6a2a8d385f comments MINOR 2009-05-28 15:22:24 -04:00
Aaron
c03a7186cf file allocator compile windows MINOR 2009-05-28 12:59:27 -04:00
Eliot Horowitz
e2120ef09f solaris compile MINOR 2009-05-27 17:40:20 -04:00
Aaron
5c51afc737 correctly escape backslashes in test MINOR 2009-05-27 17:32:22 -04:00
Aaron
3b2ecb5ff0 sm correctly read strings as utf8 even if JS_EncodeCharacters doesn't work as documented 2009-05-27 16:09:59 -04:00
Aaron
5d113ff1d0 test cleanup MINOR 2009-05-27 15:43:26 -04:00
Aaron
e7da7d51cb add utf8 round trip test MINOR 2009-05-27 15:40:57 -04:00
Aaron
6eef769974 simple sm utf8 check 2009-05-27 15:20:09 -04:00
Aaron
6ba27c1133 remove js encoding test MINOR 2009-05-27 14:50:41 -04:00
Aaron
f2920fa2a8 sm encoding checkpoint 2009-05-27 14:31:23 -04:00
Aaron
9333c5e06f sm encoding checkpoint 2009-05-26 18:33:25 -04:00
Aaron
9b622e6fc1 merge 2009-05-26 17:54:15 -04:00
Aaron
0b9432e6b9 sm encoding checkpoint 2009-05-26 16:04:07 -04:00
Aaron
5f4cb7b25c Merge branch 'master' of git@github.com:mongodb/mongo 2009-05-26 15:58:47 -04:00
Aaron
11baa3226f fix tests MINOR 2009-05-26 15:58:32 -04:00
Eliot Horowitz
c0fef5d2ab don't translate sm -> bson if object hasn't been modified
SERVER-70
2009-05-26 14:43:20 -04:00
Eliot Horowitz
833991e131 tests and asserts MINOR 2009-05-23 21:10:37 -04:00
Eliot Horowitz
5eb08a4478 change min/max to minKey maxKey 2009-05-22 15:05:13 -04:00
Eliot Horowitz
21d0868873 Merge branch 'master' of git@github.com:mongodb/mongo 2009-05-22 10:48:58 -04:00
Eliot Horowitz
2eddff58bb conserver types when doing bson -> js -> bson as much as possible 2009-05-22 10:48:05 -04:00
Aaron
d8e129c8ab BUG SERVER-67 correctly handle insertion of new null element with $set 2009-05-22 10:46:33 -04:00
Aaron
9d44b312f0 BUG SERVER-59 when matching expand arrays recursively if contained in different objects 2009-05-21 13:24:14 -04:00
Eliot Horowitz
ed74bbf25a more weird js syntax handling 2009-05-21 10:05:26 -04:00
Aaron
85c396b10c Merge branch 'master' of git@github.com:mongodb/mongo 2009-05-20 11:39:22 -04:00
Aaron
da7a9b3f71 make tools capable of running standalone, without a mongod instance 2009-05-20 11:39:12 -04:00
Aaron
f80d887a78 BUG SERVER-58 fix embedded array matching 2009-05-20 10:54:23 -04:00
Aaron
3c9ffd3e34 fix compile warnings MINOR 2009-05-15 13:32:31 -04:00
Eliot Horowitz
2db1e0ca72 Merge branch 'smshell'
Conflicts:
	jstests/count.js
	scripting/engine_spidermonkey.cpp
2009-05-15 13:10:55 -04:00
Eliot Horowitz
7b0777cb01 Spider Monkey: Timestamp, MaxKey, MinKey working 2009-05-15 09:19:13 -04:00
Eliot Horowitz
33e7a6538e Spider Monkey: more types - almost working 2009-05-15 08:31:11 -04:00
Eliot Horowitz
088f487c2a only strings for $where 2009-05-14 16:50:14 -04:00
Eliot Horowitz
60f76f524f sm regex -> bson 2009-05-14 16:11:01 -04:00
Eliot Horowitz
a27d79d7a7 some regex tests, 1 broken out commented out 2009-05-14 15:48:53 -04:00
Eliot Horowitz
4e781fbf5e test for date 2009-05-14 15:34:14 -04:00
Aaron
5700a5040d include query fields generating trivial bounds in exact key match check 2009-05-13 18:09:25 -04:00
Aaron
68b1edd0b0 for exact key match, query and index fields must be identical sets 2009-05-13 11:27:47 -04:00
Aaron
b9a2a82837 get rid of unused 'keyMatch' annotation in query optimizer 2009-05-13 11:17:24 -04:00
Aaron
a86e51d635 try to fix solaris compile MINOR 2009-05-12 16:54:07 -04:00
Aaron
b7182b610a reset shared database after each test suite MINOR 2009-05-12 16:37:23 -04:00
Aaron
d9129f8cb2 unit tests use same database to reduce disk usage 2009-05-12 15:58:26 -04:00
Aaron
48a4dab4dc compile linux MINOR 2009-05-11 14:10:15 -04:00
Aaron
39a974f354 lock unit test dbpath 2009-05-11 14:01:09 -04:00
Aaron
1276b9141a fix size dependent IdSet tests to work on 64bit builds MINOR 2009-05-11 11:23:43 -04:00
Aaron
600206b125 fix compile warning MINOR 2009-05-11 11:07:11 -04:00
Aaron
d4a976fd1a hold dblock throughout test to allow proper shutdown MINOR 2009-05-11 10:55:05 -04:00
Aaron
bafb23302e merge 2009-05-11 10:50:15 -04:00
Aaron
f077e9f75d add cursortests 2009-05-11 10:49:30 -04:00
Eliot Horowitz
f175443ac4 Spider Monkey: bson object cleaning 2009-05-09 22:07:36 -04:00
Aaron
6ebf10766c fix compile warning MINOR 2009-05-08 15:54:26 -07:00
Aaron
e3737f8bc8 Merge branch 'master' of git@github.com:mongodb/mongo 2009-05-08 15:43:01 -07:00
Aaron
fb0746fda6 generate simplified key to match query with simple bounds 2009-05-08 15:42:50 -07:00
Eliot Horowitz
439593bc60 fix hack for java MINOR 2009-05-08 17:22:01 -04:00
Eliot Horowitz
d9a00a89e4 turn off a test that doesn't work on java for now 2009-05-08 17:04:07 -04:00
Eliot Horowitz
d0470d437c Spider Monkey: ObjectId 2009-05-08 11:02:12 -04:00
Eliot Horowitz
76440fd5c5 Merge branch 'master' of git@github.com:mongodb/mongo 2009-05-06 15:30:37 -04:00
Eliot Horowitz
8e0ff9805a Spider Monkey: udpate working, other db.eval things 2009-05-06 15:30:05 -04:00
Aaron
d42d6b340c make $max query parameter an exclusive bound 2009-05-06 14:02:44 -04:00
Eliot Horowitz
7ebae06974 Spider Monkey: basic enumerator and conversion for BSONObj 2009-05-06 12:48:19 -04:00
Eliot Horowitz
c295022581 Merge branch 'master' of git@github.com:mongodb/mongo 2009-05-06 11:54:13 -04:00
Eliot Horowitz
511f26f338 Spider Monkey: object mapping support 2009-05-06 11:53:39 -04:00
Aaron
6ea9c81aa3 DBDirectClient uses main db mutex recursively and preserves database context 2009-05-06 11:32:48 -04:00
Aaron
4e9edd6e76 check no mods in upsert case 2009-05-06 10:19:11 -04:00
Aaron
b8337bffa5 actually use dbpathString MINOR 2009-05-04 18:41:38 -04:00
Aaron
2549b6ece2 check namespacedetails size consistency MINOR 2009-05-04 16:00:28 -04:00
Aaron
5ddf162f3e store dbpath string explicitly to keep memory alive, fixes problem running on ofc-n1 MINOR 2009-05-04 10:36:15 -04:00
Aaron
f928dbaffd fix Plan::Hint test MINOR 2009-05-01 10:44:15 -04:00
Aaron
a229845ceb more flexibility and sanity checks for min/max query specs 2009-04-30 17:36:25 -04:00
Aaron
af59c4ea9e core implementation of min/max query parameters 2009-04-30 16:25:36 -04:00
Eliot Horowitz
161ac0f769 Spider Monkey: simple $where clauses working 2009-04-29 15:45:11 -04:00
Eliot Horowitz
b927e1bade Spider Monkey: setThis 2009-04-29 11:12:35 -04:00
Eliot Horowitz
6e3122086e Spider Monkey string support 2009-04-29 10:29:56 -04:00
Eliot Horowitz
7bde5793bd starting object conversion 2009-04-29 10:16:39 -04:00
Aaron
12e5d79ff0 fix compiler warning MINOR 2009-04-28 10:24:11 -04:00
Aaron
3b6b5df7d6 forgot a file MINOR 2009-04-28 10:11:55 -04:00
Aaron
532e369024 Revert "Revert "use static variables for OCCASIONALLY/RARELY/ONCE to get per function uniqueness""
This reverts commit ce91c67c40.
2009-04-28 10:11:39 -04:00
Aaron Staple
ce91c67c40 Revert "use static variables for OCCASIONALLY/RARELY/ONCE to get per function uniqueness"
This reverts commit cc3887c864.
2009-04-27 16:51:35 -07:00
Aaron
cc3887c864 use static variables for OCCASIONALLY/RARELY/ONCE to get per function uniqueness 2009-04-27 19:12:32 -04:00
Aaron
6a2329b040 don't allow matching an array directly with standard operators 2009-04-27 14:43:05 -04:00
Aaron
8305e4cd77 always get owned id and include that mem in returned size 2009-04-27 10:31:32 -04:00
Eliot Horowitz
38aac59589 another test fix MINOR 2009-04-24 21:27:25 -04:00
Eliot Horowitz
3856fb69b6 debugging broke things MINOR 2009-04-24 21:16:15 -04:00
Aaron
eca721e96d Merge branch 'master' of git@github.com:mongodb/mongo 2009-04-24 18:38:30 -04:00
Aaron
7f6d4af088 update test MINOR 2009-04-24 18:19:40 -04:00
Aaron
f72be5279f update tests MINOR 2009-04-24 18:16:26 -04:00
Eliot Horowitz
62026b4bb5 an objcet test 2009-04-24 17:19:24 -04:00
Eliot Horowitz
4fcbdf301e more spider monkey work and testing 2009-04-24 16:41:40 -04:00
Aaron
e1b1d3d321 Merge branch 'master' of git@github.com:mongodb/mongo 2009-04-24 15:05:23 -04:00
Aaron
10c0670c52 test for upgrading to collection based set storage 2009-04-24 14:35:13 -04:00
Aaron
bd078cd876 add 'unique' option to helpers' ensureIndex 2009-04-24 11:36:42 -04:00
Aaron
c710e7b01a implement upgrade to collection based set storage 2009-04-24 11:14:29 -04:00
Eliot Horowitz
8a5b5607e0 some spider monkey scope tests working 2009-04-23 23:52:47 -04:00
Eliot Horowitz
9c88c32b04 some test refactoring 2009-04-23 22:44:19 -04:00
Aaron
97bbbb35cd test rough mem id set size 2009-04-23 18:26:42 -04:00
Aaron
63cc171bbb tests for db and mem based id sets 2009-04-23 18:01:24 -04:00
Eliot Horowitz
1f696e2143 abstracted out ScriptEngine to allow for playing with other javascript engines 2009-04-23 14:28:22 -04:00
Aaron
86bfe9dbdf refactor pairing code 2009-04-22 17:44:23 -04:00
Aaron
b9617339d4 BUG SERVER-29 matcher access objects in arrays correctly 2009-04-22 14:11:53 -04:00
Aaron
54f806da95 don't update id index when id field is to be added 2009-04-21 17:01:33 -04:00
Aaron
eb5fa5c7d8 add index id in userCreateNS, unless this is not requested in create spec 2009-04-21 15:42:22 -04:00
Aaron
fd407c04f2 update perf tests to work with auto _id index creation 2009-04-20 18:54:01 -04:00
Aaron
b1cc3f6223 add _id index automatically, don't allow it to be deleted 2009-04-20 18:40:38 -04:00
Aaron
7d85516931 fix interpretation of non numberic index direction spec 2009-04-20 18:17:52 -04:00
Aaron
52e64ed0aa use file allocator in perf tests, reformat test output 2009-04-20 15:02:11 -04:00
Aaron
80847b561c add unique option when creating index in c++, js drivers; basic unique key unit tests 2009-04-20 13:51:54 -04:00
Aaron
ee6ef61ca4 clear index cache in c++ client on dropping collection / database 2009-04-16 11:27:10 -04:00
Aaron
c4cbebd356 use file allocator in unit tests 2009-04-16 11:14:06 -04:00
Aaron
2e539cbdfe disable test updating objects without id MINOR 2009-04-13 17:59:39 -04:00
Aaron
5654bed944 add ObjectId parsing test 2009-04-13 17:47:10 -04:00
Aaron
ce293a0452 ne applies to all multikey values, adjust 'size' and 'all' behavior for objects within arrays 2009-04-13 16:40:30 -04:00
Aaron
de3b76ff45 check multi ne behavior MINOR 2009-04-13 11:40:31 -04:00
Aaron
66a1e6d1ed fix compile warning MINOR 2009-04-09 13:37:52 -04:00
Aaron
26bddf1ef8 log separate op for each deleted object 2009-04-09 13:30:28 -04:00
Aaron
495eaa8093 empty field spec same as missing field spec for queries 2009-04-08 14:01:48 -04:00
Aaron
94e12ec06b c++ test for collection name beginning with underscore MINOR 2009-04-08 10:45:51 -04:00
Aaron
5b14118413 handle nan and inf double values in comparison 2009-04-07 17:58:25 -04:00
Aaron
56f8696909 don't allow _id to be an array 2009-04-07 11:02:29 -04:00
Aaron
6458658240 add numberic comparison test MINOR 2009-04-06 17:45:29 -04:00
Aaron
4a86a27b60 update count perf tests MINOR 2009-04-06 17:33:19 -04:00
Aaron
88293bd304 MINOR fix compiler warnings 2009-04-06 16:10:31 -04:00
Aaron
53e63fd646 count perf tests 2009-04-06 15:39:52 -04:00
Aaron
57288fe0b2 fix compiler warning 2009-04-06 15:19:30 -04:00
Aaron
09a327160b add basic count test, in preparation for smarter count code coming after we cut branch 2009-04-06 15:07:20 -04:00
Aaron
0b73b8d325 array elt may not contain referenced subobject 2009-04-06 13:41:47 -04:00
Aaron
e09106351e add $all query option 2009-04-06 11:27:43 -04:00
Mike Dirolf
4f5a8d52f4 whitespace 2009-04-03 10:48:26 -04:00
Aaron
bda8a01461 Print compilation info in test output 2009-03-31 16:00:37 -04:00
Aaron
8e694fdc33 Print compilation info in test output 2009-03-31 15:59:14 -04:00
Aaron
158de5297e Perf tests for mod updates 2009-03-27 15:51:26 -04:00
Aaron
d4ab183cf6 When checking that a mod will not modify an indexed field, validate parent/child mod & index relationships 2009-03-27 15:33:22 -04:00
Aaron
8cd20d5ebb Add SIZE label 2009-03-27 13:31:13 -04:00
Aaron
20c8556b9c Don't drop certain empty objects 2009-03-27 10:36:59 -04:00
Aaron
c7606faf90 Better $push type validation 2009-03-26 17:51:57 -04:00
Aaron
c3e08b28a5 Don't double-increment 'left' 2009-03-26 17:34:19 -04:00
Aaron
e5a43008fd Build a subobject without recopying the contents 2009-03-25 18:24:22 -04:00
Aaron
547a455b5b $push idempotence checkpoint 2009-03-25 16:40:52 -04:00
Aaron
4b7f917bf5 $push replay 2009-03-25 15:17:30 -04:00
Aaron
7ba4140d5c Add $size query option 2009-03-25 14:47:04 -04:00
Aaron
835506af0a More push tests 2009-03-25 10:34:32 -04:00
Aaron
47340a0a9b $push checkpoint 2009-03-24 18:42:51 -04:00
Aaron
b850675fa9 Merge branch 'master' of git@github.com:mongodb/mongo 2009-03-24 18:15:58 -04:00
Aaron
a265385f10 $push checkpoint 2009-03-24 18:15:47 -04:00
Aaron
d0520ccafb Use string instead of char * in client code 2009-03-24 16:58:33 -04:00
Aaron
63a8d2d173 Upsert insert with embedded objects 2009-03-24 15:42:35 -04:00
Aaron
bf9976cf68 More embedded mod corner cases 2009-03-24 15:16:44 -04:00
Aaron
d7fdc782cb Merge branch 'master' of git@github.com:mongodb/mongo 2009-03-24 14:33:49 -04:00
Aaron
55a170aaa5 mod checkpoint 2009-03-24 14:33:36 -04:00
Aaron
18680997e8 Initialize BSONElement() with correct totalSize 2009-03-24 14:32:13 -04:00
Aaron
a6c9d60843 embedded mod checkpoint 2009-03-24 11:34:09 -04:00
Aaron
a6f3402e0d Few more tests 2009-03-23 18:55:32 -04:00
Aaron
7e86cd69f3 Move update related tests to separate file 2009-03-23 18:32:05 -04:00
Aaron
6b9abc6144 mods on missing embedded objects checkpoint 2009-03-23 18:21:07 -04:00
Aaron
5a276ef621 Replace emptyObj with BSONObj() 2009-03-19 16:23:04 -04:00
Aaron
e55e945fca Add getmore perf tests 2009-03-18 18:23:42 -04:00
Aaron
bf1d5f4282 $set can be used with any type, checkpoint 2009-03-18 18:06:37 -04:00
Aaron
cc83107966 Now forward startLoc, with test 2009-03-18 17:50:45 -04:00
Aaron
8ffaa3e2d9 Remove 'haveLogged' 2009-03-17 13:48:40 -04:00
Aaron
1bf6caeb4c Tailable w/ delete tests 2009-03-11 17:19:08 -04:00
Aaron
3055ab6d1d Clean up tailable cursor code 2009-03-11 17:05:50 -04:00
Aaron
99dd91cddc Don't attempt to make cursor tail immediately if not at end 2009-03-11 11:58:26 -04:00
Aaron
d4fad81da1 Add explicit getMore to client interface 2009-03-10 16:49:17 -04:00
Aaron
2ba030abe0 Move index cache to NamespaceDetailsTransient 2009-03-03 17:30:26 -05:00
Aaron
70263570bb Remove logging 2009-03-02 18:33:03 -05:00
Aaron
930f169fd7 Add idempotence test for timestamp update 2009-03-02 18:16:27 -05:00
Aaron
f5e4fe8cd6 Key match checkpoint 2009-03-02 16:03:48 -05:00
Aaron
dad75855e8 Add KeyValJSMatcher 2009-03-02 11:31:13 -05:00
Aaron
9d792eb0c5 Rename CurrentTime to Timestamp, don't change type on insert 2009-02-27 18:14:45 -05:00
Aaron
63e5764fe2 Add BSONElementManipulator and CurrentTime type 2009-02-27 17:18:56 -05:00
Aaron
4427a23bc7 Ignore MinKey and MaxKey in matcher 2009-02-27 14:04:19 -05:00
Aaron
6b73f79c21 Calling done() more than once causes tests to fail now, fixing 2009-02-27 12:18:34 -05:00
Aaron
9ba067542d Set exclusive for regex upper bound, add some tests 2009-02-27 11:48:39 -05:00
Aaron
4487004dac FieldBoundSet handles inclusive / exclusive bounds 2009-02-27 11:22:12 -05:00
Aaron
4d3100a66d More accurate nScanned recording with plan 2009-02-26 15:09:44 -05:00
Aaron
4eae90b0a6 Start using order with pattern in optimizer 2009-02-26 11:33:23 -05:00
Aaron
8ccde5ae02 woCompare consider object length 2009-02-26 11:20:19 -05:00
Aaron
ddb69bda2e Add normalized sort spec to query pattern 2009-02-26 11:13:36 -05:00
Aaron
851e5545a1 Since we're now using iterative interleaving rather than threads, don't do a table scan if an optimal index is found 2009-02-26 10:44:19 -05:00
Aaron
5656a475db If plan not doing as well as before, start using other plans too 2009-02-25 19:22:54 -05:00
Aaron
707b932df4 Delete tests 2009-02-25 16:37:12 -05:00
Aaron
181a200309 findOne fix 2009-02-25 15:59:01 -05:00
Aaron
e6ed67e5fd Remove 'getIndexCursor' references 2009-02-25 15:11:58 -05:00
Aaron
df4bf72f3d Don't use where spec for bounds 2009-02-25 11:33:03 -05:00
Aaron
f28536cc20 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-25 10:49:04 -05:00
Aaron
222ea643ad Runner improvements 2009-02-25 10:48:41 -05:00
Aaron
9722627a02 Cleaner 2009-02-25 10:06:56 -05:00
Aaron
28d9cdb43b Fix woSortOrder 2009-02-24 18:53:34 -05:00
Aaron
1f67174066 Uncomment lines 2009-02-24 18:32:08 -05:00
Aaron
b1341cf000 Recording plan configurable 2009-02-24 18:23:11 -05:00
Aaron
0d8dded1c3 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-24 17:51:58 -05:00
Aaron
17b7897f19 Remember best index for query pattern 2009-02-24 17:48:06 -05:00
Dwight
cef0228f0a Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-24 16:39:27 -05:00
Aaron
4a4b0fe482 Better error detection 2009-02-24 15:45:18 -05:00
Aaron
1517e4ede3 Add QueryPattern 2009-02-24 15:20:29 -05:00
Aaron
b257287672 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-24 14:15:37 -05:00
Aaron
4e549f1f3c More tests for 'unhelpful' plans 2009-02-24 14:15:17 -05:00
Aaron
a0920c525c Another simplifiedQuery test case; FBS stores result 2009-02-24 14:09:12 -05:00
Dwight
27a8e218f8 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-24 13:52:55 -05:00
Dwight
98c8676694 dropcollection now reuses space
dropindex doesn't yet -- coming soon
2009-02-24 13:52:34 -05:00
Aaron
c969a3c4b4 Merge 2009-02-24 13:38:17 -05:00
Aaron
a744fbf06f field bound set simplified query 2009-02-24 13:36:37 -05:00
Aaron
2bdd6b2d34 Test exception handling 2009-02-24 12:16:07 -05:00
Aaron
a7eb50116c Manually interleve query optimizer's plans rather than running each plan in a new thread 2009-02-24 11:49:55 -05:00
Aaron
86c4c87be6 New query optimizer checkpoint, minus jstest changes 2009-02-24 10:27:07 -05:00
Dwight
7012955860 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-23 18:05:56 -05:00
Dwight
3111e5411e BSONObjBuilderValueStream bug fix 2009-02-23 18:05:38 -05:00
Aaron
13b0d2c1cf Index objects even if don't have a field from index spec 2009-02-23 17:26:36 -05:00
Aaron
e663625021 First cut of query and update using new qo 2009-02-23 09:50:31 -05:00
Aaron
a4fc389f6b Count function using new query optimizer 2009-02-20 15:19:41 -05:00
Aaron
db0f38e88b Dummy count implementation 2009-02-20 11:08:22 -05:00
Aaron
b405fea8d1 More start/end key testing 2009-02-19 15:35:30 -05:00
Aaron
3f61af1a47 Build start and end keys checkpoint 2009-02-19 15:04:10 -05:00
Aaron
250e0fd490 Implement hints, test direction 2009-02-19 13:58:22 -05:00
Aaron
fd756add64 More correct definition of 'optimal' 2009-02-19 10:26:46 -05:00
Aaron
c8f5a1963c More query plan details, choosing an optimal plan if there is one 2009-02-19 10:01:20 -05:00
Aaron
b251990286 More metadata about query plan 2009-02-18 15:25:50 -05:00
Aaron
593bf1f126 virtual dtors == good 2009-02-18 13:42:32 -05:00
Aaron
247d3e69a4 Some ordering logic 2009-02-17 20:57:36 -05:00
Aaron
42de993149 More field bounds 2009-02-17 19:39:35 -05:00
Aaron
0e38bc5a8f FieldBound work 2009-02-17 15:53:19 -05:00
Dwight
da53450036 fix to properly check for dupkey with unused keys 2009-02-13 12:58:05 -05:00
Aaron
3279dfa644 Check that applying ops doesn't produce new ops 2009-02-12 13:11:31 -05:00
Aaron
6224cd9f29 Add initial perf tests 2009-02-11 13:17:52 -05:00
Aaron
e66877f86a Remove logging 2009-02-10 11:24:10 -05:00
Aaron
ea431a83dc Make labeled subobj specs easier in c++. Now you can do BSON( "a" << GT << 4 << LTE << 22.3 << NE << "foo" ) 2009-02-10 11:21:13 -05:00
Dwight
8cb17548c2 bsonobjbuilder cleanup 2009-02-09 15:38:26 -05:00
Dwight
147948c7b3 doneAndDecouple() -> obj() 2009-02-09 13:04:32 -05:00
Dwight
7d593671fe rename classes and add a new client connect method 2009-02-06 16:56:14 -05:00
Aaron
abf7cc678d Update unit tests 2009-02-06 13:26:29 -05:00
Aaron
422efe3aea Fix test failure on hudson boost 2009-02-05 13:07:31 -05:00
Aaron
6b88cdc56c More validation for modifier updates 2009-02-05 11:51:51 -05:00
Aaron
9b7f4d830d Don't update pattern if no key in matching object 2009-02-05 10:10:53 -05:00
Aaron
48d9093643 Replay fixes for some more update cases 2009-02-04 16:15:22 -05:00
Aaron
cf4e99b9ee Log generated id with inserted object, log id as update query in some cases 2009-02-03 22:34:51 -05:00
Aaron
b47b8b6829 Make sure object w/ undefined elt is valid 2009-02-03 13:27:46 -05:00
Aaron
f4d6c7fec1 Undefined element can appear anywhere in object 2009-02-03 13:19:45 -05:00
Aaron
c68bc1589b Install JNI within context of unit test framework's signal handler 2009-02-03 11:50:30 -05:00
Dwight
7f1dd75086 return a nonzero exit code on a startup problem 2009-02-03 10:37:06 -05:00
Aaron
bca4070869 Actually add javajstests 2009-02-03 00:14:14 -05:00
Aaron
7b1d71bf25 Put javajstest in 'test' binary, fix fallout of starting jni in test binary 2009-02-03 00:05:49 -05:00