summaryrefslogtreecommitdiff
path: root/src/mongo/db/index
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2014-08-18 16:32:08 -0400
committerMathias Stearn <mathias@10gen.com>2014-10-27 13:07:20 -0400
commit9c6ec970c5e7c7c8058008d30951430d149b3968 (patch)
tree315b0eb49d8e92ac180308e81804ee52f4c8563c /src/mongo/db/index
parentca29cc4f4f9b7de04dc507c0428da898cbd1c9cd (diff)
downloadmongo-9c6ec970c5e7c7c8058008d30951430d149b3968.tar.gz
SERVER-13951 Changes that depend on rollback
Diffstat (limited to 'src/mongo/db/index')
-rw-r--r--src/mongo/db/index/btree_based_access_method.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/mongo/db/index/btree_based_access_method.cpp b/src/mongo/db/index/btree_based_access_method.cpp
index a92a0484b91..f8e8ffdd2ed 100644
--- a/src/mongo/db/index/btree_based_access_method.cpp
+++ b/src/mongo/db/index/btree_based_access_method.cpp
@@ -255,20 +255,6 @@ namespace mongo {
setDifference(data->oldKeys, data->newKeys, &data->removed);
setDifference(data->newKeys, data->oldKeys, &data->added);
- bool checkForDups = !data->added.empty()
- && (KeyPattern::isIdKeyPattern(_descriptor->keyPattern()) || _descriptor->unique())
- && !options.dupsAllowed;
-
- if (checkForDups) {
- for (vector<BSONObj*>::iterator i = data->added.begin(); i != data->added.end(); i++) {
- Status check = _newInterface->dupKeyCheck(txn, **i, record);
- if (!check.isOK()) {
- status->_isValid = false;
- return check;
- }
- }
- }
-
status->_isValid = true;
return Status::OK();