Commit Graph

49 Commits

Author SHA1 Message Date
Eliot Horowitz
ca198bc64f fix race condition between dropping database or colletion and map/reduce cleanup SERVER-2542 2011-02-12 17:39:44 -05:00
Mathias Stearn
4e77ed6771 Missing commitIfNeeded in mapReduce 2011-02-11 19:27:08 -05:00
Eliot Horowitz
922f614d0f fix memory leak on exception in State::reduceInMemory SERVER-2522 2011-02-10 00:56:53 -05:00
Mathias Stearn
3174e3fc0d Don't mix malloc and smart pointers 2011-02-09 23:16:57 -05:00
Eliot Horowitz
e0c8d9a6fc don't use new[] for boost shared ptr SERVER-2504 2011-02-09 23:03:03 -05:00
agirbal
34f8e800ce [CACHE-2398]: for inline mapreduce, all emitted objects are kept in RAM before the 1st reduce, potential high memory usage 2011-01-25 15:20:07 -08:00
agirbal
58bbafbc57 [SERVER-2333]: mapreduce: if results are inline vs into collection, it seems the execution may differ (different optimization?)
This was fixed, now reduce() isnt called for unique keys even when output to collection.

Added many comments all around mr.cpp
2011-01-24 15:07:54 -08:00
Eliot Horowitz
ef2657b9b6 remove Snapshot as it was extraneous 2011-01-24 11:39:12 -05:00
Eliot Horowitz
e2b9ab610d fix m/r when a sharded connection for a non-sharded collection 2011-01-23 18:42:14 -05:00
Eliot Horowitz
2c5795d620 ability to take a chunk snapshot so you have a consistent view 2011-01-23 02:53:31 -05:00
Eliot Horowitz
32198fddd9 check for un-owned docs for sharded map/reduce 2011-01-22 00:27:28 -05:00
Eliot Horowitz
5d45bcfdd4 better error messages for m/r errors 2011-01-21 14:19:49 -05:00
agirbal
1830f9cb5e [SERVER-1951]: support for output to other DB with sharding. Test in jstests/sharding/bigMapReduce.js 2011-01-19 00:16:29 -08:00
Eliot Horowitz
593819743e create index on internal collection before hand so won't block SERVER-2372 2011-01-17 21:56:08 -05:00
Eliot Horowitz
418423388c handle null finalize in m/r SERVER-2199 2011-01-16 00:51:19 -05:00
Eliot Horowitz
bbf5abc04a reduce to an empty collection works SERVER-2272 2011-01-16 00:38:18 -05:00
agirbal
80fecd37e3 [SERVER-2286]: change to allow operations on slave if not replSet 2011-01-06 12:48:25 -08:00
agirbal
da0bc29177 [SERVER-1951]: M/R output param should allow us to use db.collection not only collection 2011-01-05 22:06:04 -08:00
Mathias Stearn
49af28aa00 Fix map reduce segfault 2011-01-05 12:43:05 -05:00
agirbal
f5e2323933 [SERVER-2286]: slaveOk is ignored for group() and mapReduce(), these are allowed to run on slave always 2011-01-04 23:17:22 -08:00
Eliot Horowitz
d5d2da55de if using inline mr, don't put an empty "result" SERVER-2311 2011-01-04 01:52:54 -05:00
Eliot Horowitz
b828d21630 ran astyle SERVER-2304 2011-01-04 00:40:41 -05:00
Eliot Horowitz
b043cc1272 remove unused tempShort 2010-12-21 16:56:18 -05:00
Eliot Horowitz
5801ff1cda better error handling for wrong types for query/sort SERVER-2228 2010-12-17 11:07:10 -05:00
Eliot Horowitz
e634287abf remove temp collection code 2010-12-17 00:22:20 -05:00
Eliot Horowitz
c0fa671318 map/reduce no longer uses temp collections.
you have to specify out
SERVER-1837
2010-12-16 16:41:28 -05:00
Eliot Horowitz
c770005874 more map/reduce refactoring for SERVER-1837 (4) 2010-12-15 09:51:01 -05:00
Eliot Horowitz
845360735a more map/reduce refactoring for SERVER-1837 all db access encapsulated 2010-12-15 09:32:58 -05:00
Eliot Horowitz
e5d0731c2d more map/reduce refactoring for SERVER-1837 (2) 2010-12-15 09:32:58 -05:00
Eliot Horowitz
3ac6dfcd5c more map/reduce refactoring for SERVER-1837 2010-12-15 09:32:58 -05:00
Eliot Horowitz
a6127a617b some map/reduce cleaning 2010-12-14 11:23:51 -05:00
dwight
f89bc9e3a5 elim warning 2010-12-12 17:38:23 -05:00
Eliot Horowitz
c595bb37cc cleaning 2010-12-07 00:09:10 -05:00
Eliot Horowitz
af13012f31 more m/r cleaning 2010-12-07 00:09:10 -05:00
Eliot Horowitz
6ce540eb86 some m/r cleaning 2010-12-06 17:39:13 -05:00
Eliot Horowitz
33c79655ab fix mr temp collection handling with no results 2010-11-21 13:39:14 -05:00
Eliot Horowitz
8f726a40b8 fix sharded outType 2010-11-15 17:23:28 -05:00
Eliot Horowitz
94ba794b85 map/reduce into old collections merge or reduce SERVER-647 2010-11-15 15:10:31 -05:00
Eliot Horowitz
1cafbcceca cleaning m/r code 2010-11-15 14:39:56 -05:00
Eliot Horowitz
1bb47c4a92 working on merging m/r results SERVER-647 2010-11-15 14:39:56 -05:00
Eliot Horowitz
ce9673398d fix slave indexes SERVER-1502 2010-11-10 01:57:26 -05:00
Eliot Horowitz
31a3c0bc0f check for dups on multikey indexes SERVER-1904 2010-11-09 18:36:56 -05:00
Eliot Horowitz
5edab00f7c copy indexes from permanent mr output collections before renaming so no hiccup SERVER-1502 2010-11-09 15:49:12 -05:00
Eliot Horowitz
39279bd5a7 mr count for status uses limit SERVER-1573 2010-10-28 13:47:30 -04:00
Eliot Horowitz
53a0d295e3 split bson max size into User and Internal
sometimes objects have to be bigger (oplog insertion for example)
more prep for SERVER-431
2010-10-11 11:26:41 -04:00
Eliot Horowitz
d3c3b8a903 using BSONObjMaxSize everywhere bson size comes into play
still 4mb, this is just prep for changing SERVER-431
2010-10-10 20:01:17 -04:00
Tony Hannan
4accb33044 SERVER-520: Map/reduce/finalize function can now include their own scope. They get merged with the m/r's general scope. 2010-10-08 13:00:09 -04:00
Eliot Horowitz
9c752abe25 compile 2010-09-30 17:47:44 -04:00
Eliot Horowitz
f550177b1a moving some commands into db/commands/ directory 2010-09-30 17:37:19 -04:00