[SERVER-30272] Found an index like {fieldName: 0} Created: 22/Jul/17 Updated: 27/Oct/23 Resolved: 24/Jul/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Nic Cottrell (Personal) | Assignee: | Kelsey Schubert |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
I just did a mongodump and mongorestore and got an error: {{code} I checked on the source collection and found an index like: code , I'm not sure how long this has been there, but I suppose it doesn't actually do anything on the source database? Maybe it is assumed to be 1 if it's not -1 ? |
| Comments |
| Comment by Nic Cottrell (Personal) [ 25/Jul/17 ] |
|
Thanks Thomas. Glad that it's already been addressed. |
| Comment by Kelsey Schubert [ 24/Jul/17 ] |
|
Hi niccottrell, Thanks for reporting this behavior. You're correct that it is treated as an ascending index if it's not -1. See To resolve this issue, I would recommend dropping this index and recreating it with the correct specifications. Kind regards, |