summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_drop_cmd.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-09-12 15:43:03 -0400
committerMathias Stearn <mathias@10gen.com>2017-09-13 17:50:40 -0400
commitc514e143a50cb2623078087f56144a05c1419e9f (patch)
treec1d60ccf5be5a368a08fd5fb1b3db7e18590631f /src/mongo/s/commands/cluster_drop_cmd.cpp
parent47db63707f8dd9c86691e04ded450e4044ff7467 (diff)
downloadmongo-c514e143a50cb2623078087f56144a05c1419e9f.tar.gz
SERVER-31069 Stop converting SendStaleConfig to RecvStaleConfig
Diffstat (limited to 'src/mongo/s/commands/cluster_drop_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_drop_cmd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/s/commands/cluster_drop_cmd.cpp b/src/mongo/s/commands/cluster_drop_cmd.cpp
index 109ba3f2458..2b3dc5f5fd4 100644
--- a/src/mongo/s/commands/cluster_drop_cmd.cpp
+++ b/src/mongo/s/commands/cluster_drop_cmd.cpp
@@ -138,9 +138,9 @@ private:
Shard::RetryPolicy::kIdempotent));
// Special-case SendStaleVersion errors
- if (cmdDropResult.commandStatus == ErrorCodes::SendStaleConfig) {
- throw RecvStaleConfigException(
- str::stream() << "Stale config while dropping collection", cmdDropResult.response);
+ if (cmdDropResult.commandStatus == ErrorCodes::StaleConfig) {
+ throw StaleConfigException(str::stream() << "Stale config while dropping collection",
+ cmdDropResult.response);
}
uassertStatusOK(cmdDropResult.commandStatus);