|
This change can take users by surprise when their scripts suddenly stop working when they upgrade.
For example, this command in the shell would need to remove the result after the command.
2.4:
db.chunks.aggregate(
|
{ $group : { _id : { "ns" : "$ns" , "shard" : "$shard" }, total : { $sum : 1 } } },
|
{ $sort : { "_id.ns" : 1, "_id.shard" : 1 } } ).result.forEach( function(x) {print("foo");} );
|
Change to this in 2.6:
db.chunks.aggregate(
|
{ $group : { _id : { "ns" : "$ns" , "shard" : "$shard" }, total : { $sum : 1 } } },
|
{ $sort : { "_id.ns" : 1, "_id.shard" : 1 } } ).forEach( function(x) {print("foo");} );
|
|