diff options
Diffstat (limited to 'src/mongo/client/dbclient_rs.cpp')
-rw-r--r-- | src/mongo/client/dbclient_rs.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/client/dbclient_rs.cpp b/src/mongo/client/dbclient_rs.cpp index 84d0b2a48cf..a3fc233ab21 100644 --- a/src/mongo/client/dbclient_rs.cpp +++ b/src/mongo/client/dbclient_rs.cpp @@ -645,9 +645,9 @@ unique_ptr<DBClientCursor> DBClientReplicaSet::checkSlaveQueryResult( BSONElement code = error["code"]; if (code.isNumber() && code.Int() == ErrorCodes::NotMasterOrSecondary) { isntSecondary(); - throw DBException(14812, - str::stream() << "slave " << _lastSlaveOkHost.toString() - << " is no longer secondary"); + uasserted(14812, + str::stream() << "slave " << _lastSlaveOkHost.toString() + << " is no longer secondary"); } return result; |