summaryrefslogtreecommitdiff
path: root/src/mongo/s/s_only.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/s_only.cpp')
-rw-r--r--src/mongo/s/s_only.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/s_only.cpp b/src/mongo/s/s_only.cpp
index bd0d0c25cbf..85fc9c18e8b 100644
--- a/src/mongo/s/s_only.cpp
+++ b/src/mongo/s/s_only.cpp
@@ -49,7 +49,7 @@ namespace mongo {
Client& Client::initThread(const char *desc, AbstractMessagingPort *mp) {
DEV nThreads++; // never decremented. this is for casi class asserts
setThreadName(desc);
- assert( currentClient.get() == 0 );
+ verify( currentClient.get() == 0 );
Client *c = new Client(desc, mp);
currentClient.reset(c);
mongo::lastError.initThread();
@@ -68,7 +68,7 @@ namespace mongo {
const char *ns, BSONObj& cmdObj ,
BSONObjBuilder& result,
bool fromRepl ) {
- assert(c);
+ verify(c);
string dbname = nsToDatabase( ns );