summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2019-04-24 22:34:41 -0400
committerGregory Wlodarek <gregory.wlodarek@mongodb.com>2019-04-26 15:22:42 -0400
commit93dd23880759430872510ef0b539e746192e44e2 (patch)
tree84007c8aef2069767d944c2175174c6ac1ab2245 /src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp
parentc97a46f335326fa89520cacfca8f54be8571f34a (diff)
downloadmongo-93dd23880759430872510ef0b539e746192e44e2.tar.gz
SERVER-40547 Change handling of nextNotIncreasing to crash when test commands are enabled
Diffstat (limited to 'src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp')
-rw-r--r--src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp
index d42ee175913..497700759d1 100644
--- a/src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp
+++ b/src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp
@@ -1088,6 +1088,9 @@ protected:
<< redact(toHex(item.data, item.size)) << ") is less than the previous key ("
<< redact(_key.toString()) << "), which is a bug.";
+ // Crash when test commands are enabled.
+ invariant(!getTestCommandsEnabled());
+
// Force a retry of the operation from our last known position by acting as-if
// we received a WT_ROLLBACK error.
throw WriteConflictException();