0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00

fix crash just introduced

This commit is contained in:
Dwight 2010-08-26 12:22:23 -04:00
parent 22b2a2988c
commit 61cf36b823

View File

@ -1673,7 +1673,8 @@ namespace mongo {
Client::invalidateDB( d->name ); Client::invalidateDB( d->name );
Database::closeDatabase( d->name.c_str(), d->path ); Database::closeDatabase( d->name.c_str(), d->path );
_deleteDataFiles( d->name.c_str() ); d = 0; // d is now deleted
_deleteDataFiles( db.c_str() );
} }
typedef boost::filesystem::path Path; typedef boost::filesystem::path Path;