diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-12-06 10:31:33 -0500 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-12-06 14:06:21 -0500 |
commit | 4fcaef90b1ca91b4806bace87da568565d5633c9 (patch) | |
tree | 30739fbfdff53ec1fca7d1a1e1d89ee2fbf742fc /src/mongo/db/s/split_chunk.cpp | |
parent | 12a08f2246b8ec195b9f97449d5717895197b7ee (diff) | |
download | mongo-4fcaef90b1ca91b4806bace87da568565d5633c9.tar.gz |
SERVER-31056 Do not uassert with code StaleConfig
The StaleConfig error code is interpreted in a special way and it
requires the presence of StaleConfigException. Because of this we should
never uassert with it directly.
Diffstat (limited to 'src/mongo/db/s/split_chunk.cpp')
-rw-r--r-- | src/mongo/db/s/split_chunk.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/split_chunk.cpp b/src/mongo/db/s/split_chunk.cpp index 77120fb2674..348e8d1c52b 100644 --- a/src/mongo/db/s/split_chunk.cpp +++ b/src/mongo/db/s/split_chunk.cpp @@ -100,7 +100,7 @@ bool checkMetadataForSuccessfulSplitChunk(OperationContext* opCtx, return CollectionShardingState::get(opCtx, nss.ns())->getMetadata(); }(); - uassert(ErrorCodes::StaleConfig, + uassert(ErrorCodes::StaleEpoch, str::stream() << "Collection " << nss.ns() << " became unsharded", metadataAfterSplit); |