[SERVER-1561] sorting doesn't work if sort field not included in projection Created: 03/Aug/10 Updated: 12/Jul/16 Resolved: 04/Aug/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 1.6.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mathias Stearn | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
load server with something like this: )} ) test with this: ).sort( {r:1}).forEach(function(z){ if (z.rr <= r) {printjson(z);print(r)}r= z.rr}) you will see one printout each time mongos switches shards |
| Comments |
| Comment by auto [ 04/Aug/10 ] |
|
Author: {'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}Message: fix sorting if sort field not included in projection |
| Comment by auto [ 04/Aug/10 ] |
|
Author: {'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}Message: fix sorting if sort field not included in projection |