summaryrefslogtreecommitdiff
path: root/src/mongo/s
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2012-12-07 13:40:56 -0500
committerRandolph Tan <randolph@10gen.com>2012-12-07 13:54:23 -0500
commitae321c06047c61c815fa94dc3ab83a13194d4e82 (patch)
tree371f41714ee54ac287b185413d8add25b09a3c46 /src/mongo/s
parentffb1bd41d82cb95e3c2d787b346fd6814dda3059 (diff)
downloadmongo-ae321c06047c61c815fa94dc3ab83a13194d4e82.tar.gz
SERVER-7874 Mongos commands return ok = true even when asserts fail
Diffstat (limited to 'src/mongo/s')
-rw-r--r--src/mongo/s/commands_public.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/s/commands_public.cpp b/src/mongo/s/commands_public.cpp
index be80cbe36a2..17c6182e6f4 100644
--- a/src/mongo/s/commands_public.cpp
+++ b/src/mongo/s/commands_public.cpp
@@ -1877,6 +1877,7 @@ namespace mongo {
ok = c->run( nsToDatabase( ns ) , jsobj, queryOptions, errmsg, anObjBuilder, false );
}
catch (DBException& e) {
+ ok = false;
int code = e.getCode();
if (code == RecvStaleConfigCode) { // code for StaleConfigException
throw;