summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops
diff options
context:
space:
mode:
authorScott Hernandez <scotthernandez@gmail.com>2013-08-09 11:12:26 -0400
committerScott Hernandez <scotthernandez@gmail.com>2013-08-09 11:56:09 -0400
commit7ef3ff6668c05a44745e62d02c40b6041df80bf3 (patch)
tree0b719e32f64eb74db39bb910749096626b64fe0c /src/mongo/db/ops
parent0a86018f3ec8c079bbded1f9b2dd3917e9c6516f (diff)
downloadmongo-7ef3ff6668c05a44745e62d02c40b6041df80bf3.tar.gz
cleanup okForStorage whitelisting checks
Diffstat (limited to 'src/mongo/db/ops')
-rw-r--r--src/mongo/db/ops/update.cpp2
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;