Description
On mongod if a count is < 0 we bracket it up to 0. On mongos we just take the value of applySkipLimit, which can be < 0 if limit < 0.
total = applySkipLimit( total , cmdObj );
|
result.appendNumber( "n" , total );
|
BSONObjBuilder temp( result.subobjStart( "shards" ) );
|
for ( map<string,long long>::iterator i=shardCounts.begin(); i!=shardCounts.end(); ++i )
|
temp.appendNumber( i->first , i->second );
|
temp.done();
|
return true;
|
Attachments
Issue Links
- related to
-
SERVER-5355 negative count limit brackets result to 0
-
- Closed
-
-
SERVER-4555 check and clean sharding utilization of queryutil code
-
- Closed
-