summaryrefslogtreecommitdiff
path: root/src/mongo/base
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2018-10-22 12:41:33 -0400
committerJack Mulrow <jack.mulrow@mongodb.com>2018-10-30 10:06:41 -0400
commit3cdf605c16901f98472bdce6e0fc779d2d213ddb (patch)
treeb62adcd622991ae26fc02bcaa43dd92399bd980f /src/mongo/base
parent8dca4a066df2418c90c517fee3e656813697b5fa (diff)
downloadmongo-3cdf605c16901f98472bdce6e0fc779d2d213ddb.tar.gz
SERVER-37350 Shards should reject writes in snapshot sharded transactions to chunks that have moved
Diffstat (limited to 'src/mongo/base')
-rw-r--r--src/mongo/base/error_codes.err3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/base/error_codes.err b/src/mongo/base/error_codes.err
index 10eaade7cdf..647ad63b9c1 100644
--- a/src/mongo/base/error_codes.err
+++ b/src/mongo/base/error_codes.err
@@ -269,6 +269,7 @@ error_code("CannotBackup", 268);
error_code("DataModifiedByRepair", 269);
error_code("RepairedReplicaSetNode", 270);
error_code("JSInterpreterFailureWithStack", 271, extra="JSExceptionInfo")
+error_code("MigrationConflict", 272)
# Error codes 4000-8999 are reserved.
# Non-sequential error codes (for compatibility only)
@@ -329,4 +330,4 @@ error_class("ConnectionFatalMessageParseError", ["IllegalOpMsgFlag",
error_class("ExceededTimeLimitError", ["ExceededTimeLimit", "MaxTimeMSExpired", "NetworkInterfaceExceededTimeLimit"])
-error_class("SnapshotError", ["SnapshotTooOld", "SnapshotUnavailable", "StaleChunkHistory"])
+error_class("SnapshotError", ["SnapshotTooOld", "SnapshotUnavailable", "StaleChunkHistory", "MigrationConflict"])