summaryrefslogtreecommitdiff
path: root/src/mongo/db/db.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/db.h')
-rw-r--r--src/mongo/db/db.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/db.h b/src/mongo/db/db.h
index 94841024194..7d2928c25ba 100644
--- a/src/mongo/db/db.h
+++ b/src/mongo/db/db.h
@@ -35,7 +35,7 @@ namespace mongo {
dbtemprelease() {
const Client& c = cc();
_context = c.getContext();
- assert( Lock::isLocked() );
+ verify( Lock::isLocked() );
if( Lock::nested() ) {
Lock::nested();
massert(10298 , "can't temprelease nested lock", false);
@@ -44,7 +44,7 @@ namespace mongo {
_context->unlocked();
}
tr.reset(new Lock::TempRelease);
- assert( c.curop() );
+ verify( c.curop() );
c.curop()->yielded();
}
~dbtemprelease() {
@@ -55,7 +55,7 @@ namespace mongo {
};
/** must be write locked
- no assert (and no release) if nested write lock
+ no verify(and no release) if nested write lock
a lot like dbtempreleasecond, eliminate?
*/
struct dbtempreleasewritelock {
@@ -65,13 +65,13 @@ namespace mongo {
dbtempreleasewritelock() {
const Client& c = cc();
_context = c.getContext();
- assert( Lock::isW() );
+ verify( Lock::isW() );
if( Lock::nested() )
return;
if ( _context )
_context->unlocked();
tr.reset(new Lock::TempRelease);
- assert( c.curop() );
+ verify( c.curop() );
c.curop()->yielded();
}
~dbtempreleasewritelock() {