christkv/node-mongodb-native — pull request #507 by enaeseth (2012-02-14 01:55:21+00:00)
Title: Fix default map-reduce output setting

In Collection.mapReduce, if no "out" option is specified, the code tries to use inline output as the default.

Unfortunately, instead of setting out to `{inline: 1}`, it sets it to `"inline"`, which results in map-reduce output being put in a collection named "inline". :(

Perhaps better behavior would be, like the Mongo shell, to not have a default for this. But this pull request at least implements the existing behavior correctly.