diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2017-10-20 17:11:31 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2017-10-20 17:11:31 -0400 |
commit | 0bd0f206459cc34e6d118a72f659440e13b611f5 (patch) | |
tree | dac3a22918a4baa8843835e087e549df1a42867f /src/mongo/db/commands.cpp | |
parent | 02ecda9fcdc70eec55cf3ba80d22404fc681c0b1 (diff) | |
download | mongo-0bd0f206459cc34e6d118a72f659440e13b611f5.tar.gz |
SERVER-17414 Fix unreferenced local variable in catch exception specifiers
Diffstat (limited to 'src/mongo/db/commands.cpp')
-rw-r--r-- | src/mongo/db/commands.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands.cpp b/src/mongo/db/commands.cpp index 6d4d318b638..a32f3060ec2 100644 --- a/src/mongo/db/commands.cpp +++ b/src/mongo/db/commands.cpp @@ -217,7 +217,7 @@ BSONObj Command::runCommandDirectly(OperationContext* opCtx, const OpMsgRequest& try { bool ok = command->publicRun(opCtx, request, out); appendCommandStatus(out, ok); - } catch (const StaleConfigException& ex) { + } catch (const StaleConfigException&) { // These exceptions are intended to be handled at a higher level and cannot losslessly // round-trip through Status. throw; |