-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: mongorestore
-
None
-
Environment:Linux 2.6.21, x64. MongoDB running with auth.
My Mongo database has few indexes with a custom name, because there are too many fields in them to generate a name automatically without failing with "ns name too long" error.
When I try to restore this database from a backup using mongorestore - it fails with the this very error ("ns name too long, max size is 128"). It seems like mongorestore tries to generate index names based on their content rather than just restore whatever name was actually used in a database.