summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Gorman <bernard.gorman@gmail.com>2017-11-06 12:53:06 +0000
committerBernard Gorman <bernard.gorman@gmail.com>2017-11-07 23:33:36 +0000
commit9d82100f7a0a4df9e797eef8f0fb3f6c66938771 (patch)
treef13ca8231677a4d4d8d535ab38f8614fed0d33c2
parenta40f9d9722555f53b390202f0dad508d6b7125d7 (diff)
downloadmongo-9d82100f7a0a4df9e797eef8f0fb3f6c66938771.tar.gz
SERVER-31691 Change streams UUID mismatch uasserts with error code that causes invariant
-rw-r--r--src/mongo/db/pipeline/pipeline_d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/pipeline_d.cpp b/src/mongo/db/pipeline/pipeline_d.cpp
index 09bd1b1653f..ee1ded37c99 100644
--- a/src/mongo/db/pipeline/pipeline_d.cpp
+++ b/src/mongo/db/pipeline/pipeline_d.cpp
@@ -366,7 +366,7 @@ public:
return {"_id"}; // Collection is not sharded.
}
- uassert(ErrorCodes::StaleConfig,
+ uassert(ErrorCodes::InvalidUUID,
str::stream() << "Collection " << _ctx->ns.ns()
<< " UUID differs from UUID on change stream operations",
scm->uuidMatches(uuid));