mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
add assert
This commit is contained in:
parent
d78ed0f030
commit
d854b90695
@ -328,6 +328,7 @@ namespace mongo {
|
||||
if ( curr == capFirstNewRecord ) { // invalid, but can compare locations
|
||||
capExtent = ( capExtent == firstExtent ) ? lastExtent : theCapExtent()->xprev;
|
||||
theCapExtent()->assertOk();
|
||||
assert( !theCapExtent()->firstRecord.isNull() );
|
||||
capFirstNewRecord = theCapExtent()->firstRecord;
|
||||
if ( capExtent == firstExtent ) {
|
||||
cappedLastDelRecLastExtent() = DiskLoc();
|
||||
|
Loading…
Reference in New Issue
Block a user