diff options
Diffstat (limited to 'src/mongo/db/ops')
-rw-r--r-- | src/mongo/db/ops/update.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/ops/update.cpp b/src/mongo/db/ops/update.cpp index b75d5599a7b..fe0d12b89cc 100644 --- a/src/mongo/db/ops/update.cpp +++ b/src/mongo/db/ops/update.cpp @@ -510,7 +510,7 @@ namespace mongo { // Only user updates should be checked. Any system or replication stuff should pass through. // Config db docs shouldn't get checked for valid field names since the shard key can have // a dot (".") in it. - bool shouldValidate = !(forReplication || nsStr.db() == "config"); + bool shouldValidate = !(forReplication || nsStr.isConfigDB()); UpdateDriver::Options opts; opts.multi = multi; |