dur make fixes

This commit is contained in:
dwight
2010-11-27 16:14:47 -05:00
parent fe11f8506b
commit 278fba2dd4
8 changed files with 14 additions and 8 deletions

View File

@@ -207,7 +207,8 @@ namespace mongo {
}
/*virtual*/ void MongoMMF::close() {
if( durable ) {
#if defined(_DURABLE)
{
// we must first commit anything pending before unmapping views.
if( !testIntent ) {
dbMutex.assertAtLeastReadLocked();
@@ -218,6 +219,7 @@ namespace mongo {
ourReadViews.remove(_view_readonly);
}
}
#endif
_view_write = _view_private = _view_readonly = 0;
MemoryMappedFile::close();
}