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

2367 Commits

Author SHA1 Message Date
Eliot Horowitz
2420ed1d05 Merge branch 'master' of github.com:mongodb/mongo 2009-11-27 22:28:22 -05:00
Eliot Horowitz
c44bff08fd durability: added occasinal file sync
default: sync every 60 seconds, confiruable with syncdelay
SERVER-442
2009-11-27 22:27:04 -05:00
dwight
5d1e53387f Merge branch 'master' of git@github.com:mongodb/mongo 2009-11-27 16:41:15 -05:00
dwight
20d4e01e46 minor concurrency prep tweaking 2009-11-27 16:40:58 -05:00
Eliot Horowitz
715b80c430 linux compile 2009-11-25 22:46:01 -05:00
dwight
779f12d653 extraneous log msg 2009-11-25 15:54:58 -05:00
dwight
50abaa7936 Merge branch 'master' of git@github.com:mongodb/mongo 2009-11-25 15:49:16 -05:00
Eliot Horowitz
7024b54491 make jstOID a simple type and fix field filter and findOne 2009-11-25 14:51:40 -05:00
Eliot Horowitz
7538327283 Merge branch 'master' of git@github.com:mongodb/mongo 2009-11-25 13:28:48 -05:00
Eliot Horowitz
3b724c73ad use Helpers::findById for simpel _id lookups 2009-11-25 12:41:13 -05:00
Mike Dirolf
066f600082 minor: don't put mms in options 2009-11-25 10:14:08 -05:00
Eliot Horowitz
eed27626b8 some btree helpers and test 2009-11-25 10:09:59 -05:00
dwight
6ef4bd7aa6 bug fix with OID generation on OS X (init order problem) 2009-11-24 18:09:20 -05:00
Eliot Horowitz
1cdd8e8764 silly extraneous toString 2009-11-24 13:08:26 -05:00
Eliot Horowitz
ea24725b8e some command cleaning and query for distinct SERVER-437 2009-11-24 09:41:33 -05:00
Eliot Horowitz
4e9630f5d5 fail fast on capped delete SERVER-395 2009-11-23 23:34:17 -05:00
Mathias Stearn
498d87fe5b OID::newState to generate fresh "machine" bits 2009-11-23 11:33:27 -05:00
Mathias Stearn
33c85f0d84 Reduce probability of OID collisions 2009-11-23 11:33:27 -05:00
dwight
edfdb6bfe8 comment 2009-11-23 11:26:49 -05:00
Eliot Horowitz
e47b9a5452 correct fix for SERVER-436 2009-11-23 01:29:38 -05:00
Eliot Horowitz
53cf01bcc8 fix btreecursor mods at the end of the cursor SERVER-436 2009-11-23 00:38:53 -05:00
Eliot Horowitz
1e388b0e68 cleaning code for deleteObjects 2009-11-22 22:52:58 -05:00
Eliot Horowitz
253a1cd0cd progress meters for large index builds 2009-11-19 11:19:48 -05:00
Mathias Stearn
3607f69840 Better error messages 2009-11-18 20:37:00 -05:00
Eliot Horowitz
b6e7aafcd4 fix linux static init. will have to look at windows more 2009-11-18 17:08:58 -05:00
Dwight
2e21112c7d fix error message reporting on build index 2009-11-18 14:54:37 -05:00
Dwight
560185f6f1 fix seg fault on windows because of static initializier order 2009-11-18 14:22:00 -05:00
Dwight
32fed6a14a compile vstudio 2009-11-18 13:59:01 -05:00
Eliot Horowitz
2a04857bcf static init for linux 2009-11-18 13:11:13 -05:00
Eliot Horowitz
fd84836b8a module system, move mms into it 2009-11-18 12:53:56 -05:00
Dwight
37540835ac compile visual studio 2009-11-16 15:55:03 -05:00
Mathias Stearn
018511b366 fixes for boost 1.36 2009-11-16 11:33:57 -05:00
Mike Dirolf
5edbfbc471 fix for SERVER-419 (introduced in 428f988a...) 2009-11-15 09:45:17 -08:00
Mike Dirolf
0d656aa047 skipping all results shouldn't be an error for count operations 2009-11-14 09:31:54 -08:00
Eliot Horowitz
ca785a0400 BDONObjBuilder::apendAsNumber
better fix for SERVER-423
2009-11-13 21:07:15 -05:00
Eliot Horowitz
7db9f7ee87 some index building code cleaning looking at SERVER-423, but can't see anything yet 2009-11-13 17:26:00 -05:00
Eliot Horowitz
045a22df7a better m/r error handling and reporting 2009-11-13 11:08:42 -05:00
Eliot Horowitz
2b3ecd70b5 fix count with no filter and limit 2009-11-12 16:01:35 -05:00
Eliot Horowitz
d0958dc115 made count command take optional size/limit params
and added size() method to js query object
SERVER-417
2009-11-12 14:27:18 -05:00
Eliot Horowitz
9b340c2f62 --configsrv implies diagLog = 1 2009-11-11 16:04:52 -05:00
Eliot Horowitz
6f0dce36a5 rename old oplog to diaglog - make it always compiled in 2009-11-11 16:02:47 -05:00
Eliot Horowitz
4dae04b643 starting rename old oplog to diaglog 2009-11-11 13:54:05 -05:00
Eliot Horowitz
f9d031f12c fsync command part of SERVER-255 2009-11-11 13:41:45 -05:00
Eliot Horowitz
768e231da7 some db command cleaning 2009-11-11 13:30:11 -05:00
Mike Dirolf
86b713fdff minor: oops - fix for broken tests 2009-11-10 17:49:47 -05:00
Mike Dirolf
bb2e504105 use instead of for strict JSON DBRef encoding - more consistent 2009-11-10 17:28:51 -05:00
Eliot Horowitz
123cd0eb67 optional params for map function SERVER-401 2009-11-10 15:43:51 -05:00
Eliot Horowitz
c47308b1b4 better diagnostics for large keys 2009-11-10 13:49:15 -05:00
Eliot Horowitz
c04ee7b281 fix streaming from chunks with bad data
change migrate semantics: will now remove data in range migrating to
SHARDING-20 SHARDING-32
2009-11-09 17:08:25 -05:00
Eliot Horowitz
39c29494c1 some update cleaning with indexes 2009-11-09 16:12:32 -05:00
Eliot Horowitz
8f25fe33cf use writelock instead of dblock for future proofing 2009-11-09 15:21:37 -05:00
Eliot Horowitz
cbc63f0741 add (read|write)lock struct that currently do the same thing as dblock 2009-11-09 15:21:16 -05:00
dwight
91eda56a2a Merge branch 'master' of git@github.com:mongodb/mongo 2009-11-08 10:47:31 -05:00
dwight
428f988afe add --configsvr and --shardsvr options that make mongod run on different
port #s when specified
2009-11-08 10:46:41 -05:00
Eliot Horowitz
d0d19f97cf handle edge case 2009-11-07 21:00:15 -05:00
Eliot Horowitz
dfda4ccc39 playing with net-snmp SERVER-120 2009-11-06 16:27:49 -05:00
Eliot Horowitz
2364528abf stop mms when server shutdown 2009-11-06 16:25:57 -05:00
Eliot Horowitz
820c8e8db3 can move last chunk off of a server SHARDING-32 SHARDING-28 2009-11-06 13:57:01 -05:00
dwight
96047d90da Merge branch 'master' of git@github.com:mongodb/mongo 2009-11-06 08:19:29 -05:00
dwight
8ca31804d2 better message 2009-11-06 08:18:44 -05:00
Eliot Horowitz
36290f383b Merge branch 'master' of git@github.com:mongodb/mongo 2009-11-05 15:42:07 -05:00
Eliot Horowitz
625190f3b1 some mr cleaning 2009-11-05 15:41:51 -05:00
Mathias Stearn
44498641ea BSON_ARRAY macro 2009-11-05 13:34:14 -05:00
Mathias Stearn
e863bb68d6 BSONArray class 2009-11-05 13:34:14 -05:00
Mathias Stearn
1ce5f2707b BSONArrayBuilder class 2009-11-05 13:34:14 -05:00
Mathias Stearn
edd9f57e7f BSONObjBuilder::numStr optimization 2009-11-05 13:34:14 -05:00
Eliot Horowitz
4aeeedc9f6 minor m/r speedup 2009-11-04 21:48:49 -05:00
Eliot Horowitz
0dbf65df13 limit option for m/r 2009-11-04 17:34:59 -05:00
Eliot Horowitz
40f7fbff6d new mapreduce arch which is much faster for most data sets SERVER-326 2009-11-04 17:11:17 -05:00
Eliot Horowitz
3818050a7d use any type for bool value 2009-11-04 17:09:03 -05:00
Eliot Horowitz
d5048b8e6c m/r refactor check point 1 2009-11-04 15:25:45 -05:00
Eliot Horowitz
2dbc13e674 silly optimization 2009-11-04 14:52:11 -05:00
Eliot Horowitz
92d2689f1f wrap( char * newName ) 2009-11-04 14:52:01 -05:00
Mathias Stearn
9a81525018 Add assert to prevent calling appendAs with EOO 2009-11-03 16:39:55 -05:00
Mathias Stearn
80edd9e5cf Pull launchGDB out to debug_util.cpp 2009-11-03 16:39:55 -05:00
Eliot Horowitz
03d189f518 Merge branch 'master' of git@github.com:mongodb/mongo 2009-11-03 14:45:14 -05:00
Eliot Horowitz
18e7e48ebd stats for sharded map/reduce SHARDING-37 2009-11-03 14:44:41 -05:00
Mathias Stearn
6e4852e148 Make launchGDB() work with multiple threads. 2009-11-03 13:23:13 -05:00
Eliot Horowitz
093fe68254 some defensive code for boost versions 2009-11-03 13:19:57 -05:00
Eliot Horowitz
6fd0beb957 wassert on extsort 2009-11-03 13:02:39 -05:00
Eliot Horowitz
8b23ad4f68 some log(1) debugging 2009-11-03 13:01:07 -05:00
Eliot Horowitz
d8fbead145 delete temp shard collections on shards SHARDING-37 2009-11-03 12:17:56 -05:00
Eliot Horowitz
6d5e43755d sharded map-reduce basic test works SHARDING-37 2009-11-03 11:40:00 -05:00
Eliot Horowitz
3a1c9831c1 some sharded query re-factoring 2009-11-03 10:35:48 -05:00
Dwight
d7a8eb644d compile windows 2009-11-03 09:15:45 -05:00
Dwight
7711895110 Merge branch 'master' of git@github.com:mongodb/mongo 2009-11-03 09:09:48 -05:00
Dwight
7b8640f468 comment 2009-11-03 09:09:37 -05:00
Mathias Stearn
b92f5f3aa5 Launch GDB on SIGTRAP if compiled for debug (--dd) 2009-11-02 18:56:29 -05:00
Mathias Stearn
0c48803a96 fix for boost 1.33. no BOOST_FOREACH :( 2009-11-02 13:46:25 -05:00
Mathias Stearn
1acf77ce0c Add nested-dotted converters for BSONObj 2009-11-02 13:32:20 -05:00
Mathias Stearn
d7c527d437 pull EmbeddedBuilder to its own file 2009-11-02 13:32:20 -05:00
Eliot Horowitz
d79c6006e4 fix multi-update and modding indexed field SERVER-268 SERVER-108 2009-11-02 12:25:51 -05:00
Eliot Horowitz
39645a2739 removing dead code 2009-11-02 11:00:49 -05:00
Eliot Horowitz
d22098f810 get rid of deep in Matcher 2009-11-02 10:51:42 -05:00
Eliot Horowitz
a782eb24c3 get rid of deep on Cursor::getsetdup 2009-11-02 10:47:29 -05:00
Eliot Horowitz
8ca8a7b1a7 multi-update with multi-key SERVER-365 2009-11-02 10:40:19 -05:00
Eliot Horowitz
30185da24a fix multi-update where objects move 2009-10-30 15:51:23 -04:00
Eliot Horowitz
e0c377e0ee update returns DiskLoc where object ends up 2009-10-30 15:50:21 -04:00
Eliot Horowitz
d7544326ab cleaning 2009-10-29 16:06:35 -04:00
Eliot Horowitz
aa6fc17f57 find _id index more robustly 2009-10-29 11:59:38 -04:00
Eliot Horowitz
60ae7d2360 when doing a clone() load all indexes before starting to create so no socket timeout issues SERVER-397 2009-10-29 11:23:26 -04:00
Dwight
25a9ee68ec elim a warning on widnows during compile 2009-10-28 16:59:40 -04:00
Dwight
1a3b7c3661 Merge branch 'master' of git@github.com:mongodb/mongo 2009-10-28 15:29:55 -04:00
Dwight
a03aecb988 Merge branch 'master' of git@github.com:mongodb/mongo 2009-10-28 13:41:06 -04:00
Eliot Horowitz
9390f94cb4 Merge branch 'master' of git@github.com:mongodb/mongo 2009-10-28 12:55:59 -04:00
Mathias Stearn
fc48a0fe45 FieldMatcher now supports positive and negative matching. SERVER-299 and SERVER-125 2009-10-28 12:44:26 -04:00
Mathias Stearn
daaec9af98 Won't be able to rely on FieldMater::size with negative matchers. 2009-10-28 12:44:25 -04:00
Eliot Horowitz
0925cf6475 helper for init scripts 2009-10-27 16:37:14 -04:00
Mathias Stearn
d27c8505ea all client files now marked as Apache 2.0. SERVER-329. 2009-10-27 15:59:37 -04:00
Dwight
353af9e068 Merge branch 'master' of git@github.com:mongodb/mongo 2009-10-27 14:25:57 -04:00
Dwight
31a1b75aa3 slightly better error message when problem opening files 2009-10-27 14:25:45 -04:00
Eliot Horowitz
be1b3de4ca disintct and eoo fix 2009-10-27 12:56:59 -04:00
Eliot Horowitz
63e0ee59e4 fix invalid ensureIndex crashing server SERVER-388 2009-10-26 21:10:45 -04:00
Eliot Horowitz
8fea4b6e73 fix for old boost version MINOR 2009-10-26 17:26:38 -04:00
Eliot Horowitz
94f9c109bc fix for non-matching multi-update multi-key, some more tests SERVER-268 2009-10-26 17:20:33 -04:00
Mathias Stearn
52f075cb13 cleanup. fillQueryResultFromObj always returned true. MINOR 2009-10-26 11:20:45 -04:00
Mathias Stearn
714aa47cbc mark begining of FilterMatcher class. MINOR 2009-10-26 10:24:30 -04:00
Eliot Horowitz
ea9ae0425f security cleanup / segault fix in currentOp SERVER-384 2009-10-25 00:47:43 -04:00
Eliot Horowitz
8495bf5a33 dos2unix MINOR 2009-10-25 00:47:31 -04:00
Eliot Horowitz
69267a9032 Merge branch 'master' of github.com:mongodb/mongo 2009-10-24 20:56:22 -04:00
dwight
fe0226cd79 MINOR global var cleanup 2009-10-24 14:34:54 -04:00
Eliot Horowitz
70e2ccab50 warning fix MINOR 2009-10-23 20:59:38 -04:00
Dwight
73ed0277ff prettier 2009-10-23 11:13:08 -04:00
Eliot Horowitz
a50162fdbe map/reduce works on a slave SERVER-383 2009-10-22 23:48:12 -04:00
Eliot Horowitz
8fd95e2a19 ability to make a Client god for a little while 2009-10-22 23:47:39 -04:00
Eliot Horowitz
860a94f852 fix count w / $all issue SERVER-382 SERVER-320 2009-10-22 21:40:45 -04:00
Eliot Horowitz
c66c479782 a little cleaning 2009-10-22 21:38:02 -04:00
Eliot Horowitz
bf4e08f0f3 assert when trying to remove from a capped collection 2009-10-22 13:40:44 -04:00
Eliot Horowitz
e8466f3dc5 flag to update multiple objects with $ operators SERVER-268 2009-10-21 22:54:11 -04:00
Eliot Horowitz
c737ba61df a little update cleaning MINOR 2009-10-21 20:47:45 -04:00
Dwight
eeb0eae0bc fix unittest; to unbreak the build 2009-10-21 18:29:27 -04:00
Dwight
1d4aa0a204 compile 2009-10-21 16:12:48 -04:00
Dwight
bfa27ae2b3 Merge branch 'master' of git@github.com:mongodb/mongo 2009-10-21 16:00:55 -04:00
Dwight
844d96c19f allow more indexes
do not revert to an earlier db version or you will have problems
2009-10-21 16:00:40 -04:00
Eliot Horowitz
4774b56bf2 refactoring updateObjects return to be cleaner and so can work with multi-object update SERVER-268 2009-10-21 15:18:21 -04:00
Eliot Horowitz
fb6971e9b4 a little cleaning MINOR 2009-10-21 10:14:45 -04:00
Eliot Horowitz
d54681458c $inc/$set work even if indexes - not 100% efficient now - SERVER-108 2009-10-21 01:01:52 -04:00
Eliot Horowitz
d188a16d18 a little code cleaning before work on SERVER-108 2009-10-21 00:21:09 -04:00
Eliot Horowitz
1e1df0e434 fix assert 2009-10-20 17:31:52 -04:00
Eliot Horowitz
672f2821af --quotaFiles SERVER-374 2009-10-20 13:29:05 -04:00
Eliot Horowitz
b2b90b5568 fix assertion message 2009-10-20 11:13:33 -04:00
Dwight
a606c7a6b8 cleanup/prep for # of indexes work 2009-10-19 16:53:58 -04:00
Dwight
91328adb2d Merge branch 'master' of git@github.com:mongodb/mongo 2009-10-19 15:30:29 -04:00
Dwight
314385b97e some tests were failing when _DEBUG was defined...MINOR 2009-10-19 15:30:16 -04:00
Mathias Stearn
8190d8db53 Support {:'foo', :'bar'} syntax in queries. SERVER-275 2009-10-19 14:30:46 -04:00
Mathias Stearn
4f83c02fcc cleanup detection. MINOR 2009-10-19 14:29:50 -04:00
Dwight
8edc124418 comment 2009-10-19 13:29:12 -04:00
Dwight
691ac521d2 add update.cpp to vcproj 2009-10-19 13:25:53 -04:00
Eliot Horowitz
fcbca1e707 field selector no longer effects which objects are returned
SERVER-362
2009-10-19 12:14:20 -04:00
Eliot Horowitz
a78cb6681c map/reduce finalize option SERVER-372
nice mapReduce helper for shell
2009-10-19 11:00:53 -04:00
Eliot Horowitz
529167b0f5 split all the update code out of query.cpp into update.cpp 2009-10-19 10:13:23 -04:00
Eliot Horowitz
4c2eb48f9f BSONObj operator== 2009-10-18 21:12:57 -04:00
Eliot Horowitz
510e48d693 a little update mod cleaning 2009-10-18 20:48:08 -04:00
Eliot Horowitz
a8bc6f9584 store query in ClientCursor so can see query on slow getMore queries 2009-10-17 23:07:26 -04:00
Eliot Horowitz
55ada812dd fix EmbeddedBuilder where field names are same length but different SERVER-367 2009-10-17 01:10:48 -04:00
Eliot Horowitz
117a9b68f9 some prep work for comparing dotted field names. can't use strcmp like we used to since don't quite match 2009-10-16 23:41:21 -04:00
Eliot Horowitz
349961ae9c move oplogSize to CmdLine 2009-10-16 23:32:34 -04:00
Dwight
5d858e346e Merge branch 'master' of git@github.com:mongodb/mongo 2009-10-16 15:36:57 -04:00
Dwight
01f1f6915d move CurOp into Client and make inprog handle multiple in progress 2009-10-16 15:36:34 -04:00
Eliot Horowitz
d8235205f5 log rotation with USR1 signal SERVER-358 2009-10-16 12:46:06 -04:00
Eliot Horowitz
e48db1f60a replace cerr with cout for all server files 2009-10-16 11:39:59 -04:00
Eliot Horowitz
411b4d279e only put a timeout on db.eval if --quota is on 2009-10-16 11:37:31 -04:00
Eliot Horowitz
f634e70093 move quota/cpu to cmdLine 2009-10-16 11:36:38 -04:00
Eliot Horowitz
166c722630 make logpath use FILE/fopen instead of open - should work on windows SERVER-339 2009-10-16 10:56:15 -04:00
Eliot Horowitz
7a0324acad comment about repl and id index MINOR 2009-10-16 10:20:48 -04:00
Eliot Horowitz
8a7c1d8c1d you can tablescan a non-existant collection SERVER-346 2009-10-16 10:20:30 -04:00
Eliot Horowitz
f22a821979 fix group with [] in inital SERVER-361 2009-10-15 21:19:24 -04:00
Dwight
5696d65d83 Merge branch 'master' of git@github.com:mongodb/mongo 2009-10-15 16:47:48 -04:00
Dwight
f152047f19 fix assert to use ours and thus make unit test pass 2009-10-15 16:47:35 -04:00
Eliot Horowitz
9d96f7ec45 comment out deprecated jni stuff 2009-10-15 15:49:54 -04:00
Eliot Horowitz
81082c8d7f Merge branch 'master' of git@github.com:mongodb/mongo 2009-10-15 15:45:02 -04:00
Eliot Horowitz
9ff72bdd61 mr warning and some more tests 2009-10-15 15:44:50 -04:00
Mathias Stearn
326f612a98 un-overload appendTimeT to support MSVC 2009-10-15 15:23:53 -04:00
Mathias Stearn
8037dc89bf Modify OID definition 2009-10-15 14:08:40 -04:00
Mathias Stearn
f84a1f2429 support appending time_t to BSONObjBuilder 2009-10-15 13:59:30 -04:00
Eliot Horowitz
415f554219 more timing,debugging 2009-10-15 11:26:15 -04:00
Eliot Horowitz
209ee5f43e just Client safety MINOR 2009-10-15 00:56:51 -04:00
Eliot Horowitz
72dc2b9c22 fix sayDbContext to work w/o Client 2009-10-14 21:53:17 -04:00
Eliot Horowitz
409e8b6db4 setClient 2009-10-14 16:57:03 -04:00
Dwight
8566c4ec10 Merge branch 'master' of git@github.com:mongodb/mongo 2009-10-14 16:29:41 -04:00
Dwight
ddcf5eeb32 refactor a little 2009-10-14 16:29:32 -04:00
Eliot Horowitz
2295bf1ec9 cleaning up map/reduce temp collection names and output 2009-10-14 16:19:13 -04:00
Dwight
6641b27559 startable 2009-10-14 15:59:55 -04:00
Dwight
e36facf0a1 Merge branch 'master' of git@github.com:mongodb/mongo 2009-10-14 15:48:24 -04:00
Dwight
c43df1e575 make Top threadsafe 2009-10-14 15:48:13 -04:00
Eliot Horowitz
87d435a706 fix test and 1 assert 2009-10-14 15:36:49 -04:00
Eliot Horowitz
f07a04bf34 safer shutdown 2009-10-14 15:15:38 -04:00
Dwight
41afc73c9c more database fix and add mr.cpp to vcproj file 2009-10-14 14:52:01 -04:00
Dwight
4dfc5d6288 Merge branch 'master' of git@github.com:mongodb/mongo 2009-10-14 14:41:48 -04:00
Dwight
16f8b77c5e move the var 'database' inside Client object 2009-10-14 14:34:38 -04:00
Eliot Horowitz
2ebca2b128 comments on mms 2009-10-14 14:30:55 -04:00
Dwight
cd3b329548 comment minor 2009-10-14 11:04:46 -04:00
Dwight
9454547bb2 Merge branch 'master' of git@github.com:mongodb/mongo 2009-10-14 11:01:36 -04:00
Dwight
b5a86240a9 comment minor 2009-10-14 11:01:29 -04:00
Eliot Horowitz
3b02b0e68c dblock 2009-10-14 10:55:49 -04:00
Eliot Horowitz
25d2f88e1e clean up MR temp tables SERVER-327
Client shutdown hook
2009-10-14 10:20:53 -04:00
Mathias Stearn
47fcbc6b67 Merge branch 'master' of github.com:mongodb/mongo 2009-10-13 17:14:49 -04:00
Mathias Stearn
55a8da7715 codify some assumptions 2009-10-13 17:14:32 -04:00
Eliot Horowitz
a3d54ef5e4 was correct in its bizarre fashion before
Revert "replication see why strange code is the way it is added assert"

This reverts commit 4d613fb1f4.
2009-10-13 17:13:51 -04:00
Eliot Horowitz
ab1f46de2c fix bug with cursors and capped collections where cursor could get partial data 2009-10-13 16:44:52 -04:00