[SERVER-3687] have mongorestore ignore "v" option when restoring indexes Created: 25/Aug/11  Updated: 11/Jul/16  Resolved: 29/Aug/11

Status: Closed
Project: Core Server
Component/s: Index Maintenance, Tools
Affects Version/s: None
Fix Version/s: 2.0.0-rc1

Type: Bug Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

Currently a backup from an old system, restored to a new one, will not recreate the indexes with the current index version. As older index versions are deprecated this could become more than an annoyance.

Mongorestore should strip "v" when inserting into system.indexes.

There may be some corner case when you want to keep the old version of the index, but I can't think of one. If so an option can be made to allow mongorestore to propagate the "v" field.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 29/Aug/11 ]

--keepIndexVersion makes sense to me

Comment by auto [ 29/Aug/11 ]

Author:

{u'login': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}

Message: Make mongorestore ignore 'v' option when restoring indexes: SERVER-3687
Branch: master
https://github.com/mongodb/mongo/commit/b9615570452231a87ba14a27cdc36a1708cc6f4c

Comment by Spencer Brody (Inactive) [ 29/Aug/11 ]

I propose adding a --keepIndexVersion flag to mongorestore which will make it keep the 'v' field, otherwise the 'v' field will be removed from the index when it is inserted into system.indexes.

Generated at Thu Feb 08 03:03:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.