SERVER-114203ClosedDuplicate

FindAndModify should only implicitly create database if upsert is true

According to [this comment|https://github.com/10gen/mongo/blob/65d23b6e5e6f0141e9fb0f797d7fb2df12969d59/src/mongo/s/commands/query_cmd/cluster_find_and_modify_cmd.cpp#L1027-L1028], findAndModify should implicictly create the database only when upsert is true, but this is not the case right now. The goal of this ticket is to avoid creating the database implicitly when upsert is not true.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.