diff options
Diffstat (limited to 'mongoimport')
-rw-r--r-- | mongoimport/mongoimport.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mongoimport/mongoimport.go b/mongoimport/mongoimport.go index 53b14ee0b29..126d6aa9d24 100644 --- a/mongoimport/mongoimport.go +++ b/mongoimport/mongoimport.go @@ -156,6 +156,7 @@ func (mongoImport *MongoImport) ValidateSettings(args []string) error { } if mongoImport.IngestOptions.Upsert { + mongoImport.IngestOptions.MaintainInsertionOrder = true log.Logf(log.Info, "using upsert fields: %v", mongoImport.upsertFields) } |