diff options
Diffstat (limited to 'src/mongo/s/grid.cpp')
-rw-r--r-- | src/mongo/s/grid.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/mongo/s/grid.cpp b/src/mongo/s/grid.cpp index 1407c0edde9..94108ecdb37 100644 --- a/src/mongo/s/grid.cpp +++ b/src/mongo/s/grid.cpp @@ -34,7 +34,7 @@ #include "mongo/base/status_with.h" #include "mongo/s/catalog/catalog_cache.h" -#include "mongo/s/catalog/forwarding_catalog_manager.h" +#include "mongo/s/catalog/catalog_manager.h" #include "mongo/s/catalog/type_settings.h" #include "mongo/s/client/shard_registry.h" #include "mongo/util/log.h" @@ -46,7 +46,7 @@ Grid grid; Grid::Grid() : _allowLocalShard(true) {} -void Grid::init(std::unique_ptr<ForwardingCatalogManager> catalogManager, +void Grid::init(std::unique_ptr<CatalogManager> catalogManager, std::unique_ptr<ShardRegistry> shardRegistry, std::unique_ptr<ClusterCursorManager> cursorManager) { invariant(!_catalogManager); @@ -136,12 +136,4 @@ void Grid::clearForUnitTests() { _cursorManager.reset(); } -ForwardingCatalogManager* Grid::forwardingCatalogManager() { - return _catalogManager.get(); -} - -CatalogManager* Grid::catalogManager(OperationContext* txn) { - return _catalogManager->getCatalogManagerToUse(txn); -} - } // namespace mongo |