summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Erf <erf@mongodb.com>2014-11-10 14:02:57 -0500
committerKyle Erf <erf@mongodb.com>2014-11-10 14:02:57 -0500
commit32014c05724016fe1acc1df8b7c0e2354ee117df (patch)
tree482df005c70ede7d35132a2ede2138c1ff048e90
parent82d6acfee8601c2ab7360e6ab38ba6425c9cc742 (diff)
downloadmongo-32014c05724016fe1acc1df8b7c0e2354ee117df.tar.gz
TOOLS-123 remove more incorrect validation
Former-commit-id: 414048d493733db4e181354bde05fb73769e3c27
-rw-r--r--mongorestore/filepath.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/mongorestore/filepath.go b/mongorestore/filepath.go
index 231e2263b9e..6c5f0ecff12 100644
--- a/mongorestore/filepath.go
+++ b/mongorestore/filepath.go
@@ -103,11 +103,6 @@ func (restore *MongoRestore) CreateIntentsForDB(db, fullpath string) error {
"has .metadata.json files", db)
continue
}
- if err = util.ValidateCollectionName(collection); err != nil {
- if collection != "system.indexes" { // for < 2.6 compatability (TODO remove in 3.0)
- return fmt.Errorf("invalid collection name '%v.%v': %v", db, collection, err)
- }
- }
intent := &intents.Intent{
DB: db,
C: collection,