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

647 Commits

Author SHA1 Message Date
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
Aaron
b8c8de3f25 Real fixes for test failures 2009-02-02 23:42:34 -05:00
Aaron
c6e4f30590 Disable tests until I can fix the failures tomorrow 2009-02-02 21:39:54 -05:00
Aaron
c684aab51f Merge branch 'master' of ssh://aaron@git.10gen.com/data/gitroot/p 2009-02-02 09:54:23 -05:00
Aaron
384514998c Make arbitration smarter -- arbiter forwards negotiate request to paired node 2009-02-02 09:53:01 -05:00
unknown
9e9eb0cec7 abstracting out record storage for btree 2009-01-31 17:27:25 -05:00
Aaron
387103f955 Insert a real object 2009-01-30 22:19:12 -05:00
Aaron
d664266681 Commenting tests until they can be reworked with automatic id generation 2009-01-30 18:44:40 -05:00
Aaron
33cb18a736 Insert real objects instead of zeroes 2009-01-30 18:43:13 -05:00
Eliot Horowitz
97aab58d4b Revert "UUID class"
This reverts commit e9fc9ce950.
2009-01-30 16:21:39 -05:00
Eliot Horowitz
e9fc9ce950 UUID class 2009-01-30 15:58:44 -05:00
Aaron
596572dc89 Allow single quoted field names and values 2009-01-30 13:55:22 -05:00
Dwight
1ec09421ed hint and explain 2009-01-30 12:46:49 -05:00
Aaron
d76e24438a Fix unit tests after dbclient change 2009-01-29 22:51:50 -05:00
Aaron
01f5ce5434 Allow unquoted field names, at Dwight's request 2009-01-29 18:58:47 -05:00
Aaron
639c73405c Don't log an update having no effect, log id as query when doing just one remove 2009-01-28 15:24:52 -05:00
Aaron
01e241ae5f Fix unit test compile 2009-01-26 17:33:37 -05:00
Eliot Horowitz
1cffce1077 get rid of #define exit and just defined it in the mongo namespace 2009-01-25 12:40:11 -05:00
Aaron
9ffb858f5a Add some more tests 2009-01-23 17:49:44 -05:00
Aaron
d876749063 Add remove tests 2009-01-23 15:14:27 -05:00
Aaron
0aeff762e7 Reinstate InsertTwo test 2009-01-23 11:52:31 -05:00
Aaron
a3f927ffed Add idempotence tests for some oplog operations 2009-01-23 10:17:29 -05:00
Aaron
c1b8c2669b Parse both hex characters of each byte 2009-01-22 16:38:02 -05:00
Aaron
046e7f9acf Add HostByName test 2009-01-21 15:50:49 -05:00
Aaron
0f586a5a11 Add negative element size test 2009-01-21 10:58:53 -05:00
Aaron
a816e54816 Add 'fields' spec to cmd run count 2009-01-21 10:36:40 -05:00
Aaron
c777160f0f Fix simple match spec for encapsulating elements and numbers 2009-01-20 16:54:57 -05:00
Aaron
201734cfa7 Matcher only reject incompatible types if not numbers 2009-01-20 15:44:40 -05:00
Aaron
45b5c44f41 Merge jsobj.h changes 2009-01-19 09:37:29 -05:00
dwight
e4b9bfcf5d fix dbtests for my renaming 2009-01-18 19:40:25 -05:00
Aaron
75c6ef332d Try a short object too 2009-01-18 13:15:44 -05:00
Aaron
aadb251731 Patch some more holes in BSON validation 2009-01-18 13:11:43 -05:00
Aaron
57b78fd144 Allow random seed spec 2009-01-17 10:25:56 -05:00
Aaron
9114640a56 Merge branch 'master' of ssh://aaron@git.10gen.com/data/gitroot/p 2009-01-17 09:12:43 -05:00
Aaron
204da5d094 Add more interesting fuzz tests, move json tests into separate file 2009-01-17 08:57:27 -05:00
Eliot Horowitz
1f27383fc2 oid parsing, slight better random 2009-01-17 00:20:47 -05:00
Aaron
b36a643a54 Disable BigCollection test 2009-01-16 17:36:48 -05:00
Aaron
cd8f315538 Just use a char 2009-01-16 16:51:06 -05:00
Aaron
980ce5a396 Add tests for BSON validating randomized bitstreams 2009-01-16 16:40:46 -05:00
Aaron
1c2b23bb0f Merge branch 'master' of ssh://aaron@git.10gen.com/data/gitroot/p 2009-01-16 15:15:33 -05:00
Aaron
1524c3e44b Enhance BSONObj::validate() 2009-01-16 15:13:46 -05:00
Eliot Horowitz
004db2d6fe incorrect implementation of OID 2009-01-16 14:21:46 -05:00
Aaron
261a467aa5 Replaced our #defined cout with mongo::out() 2009-01-15 11:26:38 -05:00
Aaron
90d45238aa Indent all lines within namespaces one level 2009-01-15 10:17:11 -05:00
Aaron
e5db6b0d39 Allow compiler on Hudson to 'extern' variables in mongo namespace 2009-01-14 18:40:19 -05:00
Aaron
248a6dd8de Replace tab indentation with spaces 2009-01-14 17:17:24 -05:00
Aaron
ad1f6b3cbd Put our code in 'mongo' namespace 2009-01-14 17:09:51 -05:00
Aaron
64cc93ac22 Merge jsobj.h changes 2009-01-14 14:24:34 -05:00
Aaron
21a13b1336 NEW pdfile # : 4.4; Support compound directions with compound indexes 2009-01-14 13:56:52 -05:00
Aaron
20dc205b17 Size calculation works for cap extent minSize on 64 bit machines, removed compiler warnings. 2009-01-14 10:11:51 -05:00
Aaron
f2bbe89666 Limit regex options, only use Dbref() in TenGen mode 2009-01-13 14:27:59 -05:00
Aaron
1b33b3f76d New tests for multi extent capped collections 2009-01-13 10:36:06 -05:00
Aaron
49043c49d6 Check syntactically reserved field names specifically 2009-01-12 11:51:20 -05:00
Aaron
9e3d798e37 Make Arbitrate test work with Dwight's new dbclient code 2009-01-12 09:38:11 -05:00
Aaron
f1a538c7c8 Don't allow field names starting with $, added some tests 2009-01-08 15:21:16 -05:00
Aaron
959598db78 Fix my dumb test 2009-01-07 18:21:03 -05:00
Aaron
df3e0eb486 Added token parse failure test 2009-01-07 10:35:17 -05:00
Aaron
dcb974a59f Add regex escaping test 2009-01-06 14:03:52 -05:00
Aaron
9c4278f3ff Fix up regexp parsing 2009-01-06 13:54:19 -05:00
Aaron
dacc872ba2 Enhance json parser 2009-01-06 13:02:09 -05:00
Aaron
f0b6cf77b5 Actually handle utf8 correctly 2009-01-02 10:57:33 -05:00
Aaron
6a4de72765 Add non-Strict mode for Dbref, use base64 encoding for bindata 2008-12-31 11:33:41 -05:00
Aaron
3b40382a0d Start on TenGen and JS modes 2008-12-30 19:04:40 -05:00
Aaron
e598a0cedd Only escape if utf8 character in basic ascii range 2008-12-30 18:20:57 -05:00
Aaron
6b9b6ffa77 Add date and regexp strict mode 2008-12-30 17:47:36 -05:00
Aaron
5c9b3f8d30 Added Symbol support to formattedString, modified BinData format 2008-12-30 17:16:39 -05:00
Aaron
cb023c8bb5 Better OID printing 2008-12-30 17:05:15 -05:00
Aaron
d5d630022a Started BSONObj::formattedString 2008-12-30 11:16:14 -05:00
Aaron
1912155761 Sanity check, verify that the Base's static PairSync variables haven't been modified 2008-12-29 09:59:26 -05:00
Aaron
53f89950af Remove Hudson warning about sign comparison 2008-12-29 08:43:26 -05:00
Aaron
06e85597d4 Add newline at end of file to remove compiler warnings 2008-12-29 08:32:59 -05:00
Aaron
4c7d7b9f35 Check pairSync status instead of comparing pointers (fixes Hudson compilation failure 2008-12-29 08:30:56 -05:00
Aaron
03ac7c04be Fix tab 2008-12-28 22:16:58 -05:00
Aaron
c9429bb044 Reinstate pairing tests 2008-12-28 22:01:18 -05:00
Aaron
b7cbd30112 Replace tab indentation with spaces 2008-12-28 20:28:49 -05:00
Aaron
3148da81f2 Index simple objects within arrays 2008-12-24 13:57:30 -05:00
Aaron
11f58f1882 Use empty string for field names of key elements 2008-12-19 18:12:59 -05:00
Aaron
47f50f5ab0 Disable pairing tests until I can fix them 2008-12-15 18:22:13 -05:00
Aaron
38edd39c7f Not master if haven't caught up 2008-12-12 16:00:55 -05:00
Aaron
a16c235dad Add embedded object inequality test 2008-12-11 19:55:43 -05:00
Aaron
ac39edd52c Make object comparison recursive, with tests 2008-12-11 19:16:25 -05:00
Aaron
e85055ec41 Make object comparison recursive, with tests 2008-12-11 19:16:06 -05:00
Aaron
b3d2c2ebd8 Some basic array index improvements 2008-12-11 17:35:11 -05:00
Aaron
7bb4001e9a Change arg ordering for ASSERT_EQUALS to match current unittest library spec (an earlier version of the library used the reverse arg order) 2008-12-11 15:27:51 -05:00
Aaron
3ec2ba4d9d Added some index details tests 2008-12-11 15:20:28 -05:00
Aaron
31a4d14dd4 Fix indentation 2008-12-11 11:08:28 -05:00
Aaron
fab7190f3a Index details unit tests initial commit 2008-12-11 11:07:05 -05:00
Aaron
91c62b9ed6 Only dominant node in pair can assign master & slave status; fixes potential race condition 2008-12-10 11:14:48 -05:00
yellow
974db2cac9 remove the first "db.h" which is not only redundant, but seems to be wrong 2008-12-08 14:23:28 -05:00
Aaron
155ac2b7c2 Add arbitration unit test; adjust tab formatting of some files 2008-12-07 20:58:20 -05:00
Aaron Staple
2bbe7adce3 Fix auto_ptr usage in test 2008-12-05 16:13:21 -05:00
Aaron Staple
243a3e6b2f Adding some pairing tests 2008-12-05 16:03:35 -05:00
Aaron Staple
fa3ec70ca3 Check trailing '/' correctly 2008-12-03 13:31:44 -05:00
Aaron Staple
466bd00a2b Add usage info, make dbpath configurable 2008-12-03 13:25:06 -05:00
Aaron Staple
482b00b01e Adding new unit dbtests binary, with a few btree tests; moved some global state from db.cpp to instance.cpp 2008-12-02 09:53:05 -08:00