diff options
| author | Antonin Kral <a.kral@bobek.cz> | 2011-06-18 21:24:41 +0200 |
|---|---|---|
| committer | Antonin Kral <a.kral@bobek.cz> | 2011-06-18 21:24:41 +0200 |
| commit | 64b33ee522375a8dc15be2875dfb7db4502259b0 (patch) | |
| tree | 44979e0aaf6bb576f4a737a93e071e28809b6779 /s/grid.cpp | |
| parent | 4d87ff4aa74d7ae975268ac43eee152dc3f5b7e9 (diff) | |
Imported Upstream version 1.8.2upstream/1.8.2
Diffstat (limited to 's/grid.cpp')
| -rw-r--r-- | s/grid.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/s/grid.cpp b/s/grid.cpp index 0045754d270..06465075417 100644 --- a/s/grid.cpp +++ b/s/grid.cpp @@ -440,8 +440,14 @@ namespace mongo { return ( dbName == "local" ) || ( dbName == "admin" ) || ( dbName == "config" ); } + void Grid::flushConfig() { + scoped_lock lk( _lock ); + _databases.clear(); + } + Grid grid; + // unit tests class BalancingWindowUnitTest : public UnitTest { |
