summaryrefslogtreecommitdiff
path: root/src/mongo/s/grid.h
diff options
context:
space:
mode:
authorMisha Tyulenev <misha@mongodb.com>2016-03-03 13:39:56 -0500
committerMisha Tyulenev <misha@mongodb.com>2016-03-03 13:40:25 -0500
commitbc196517c4162993edbe6ca3669b9cd70865deec (patch)
tree9bbc44e7875ee29ae3140a8125073ea289d35a5a /src/mongo/s/grid.h
parent9778d0678715fc3f9b9f725cfd11ea85ce03b2fc (diff)
downloadmongo-bc196517c4162993edbe6ca3669b9cd70865deec.tar.gz
SERVER-22318 remove SCCC support
Diffstat (limited to 'src/mongo/s/grid.h')
-rw-r--r--src/mongo/s/grid.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/mongo/s/grid.h b/src/mongo/s/grid.h
index 6e09dbdc0e1..63e55687392 100644
--- a/src/mongo/s/grid.h
+++ b/src/mongo/s/grid.h
@@ -31,7 +31,7 @@
#include <string>
#include <vector>
-#include "mongo/s/catalog/forwarding_catalog_manager.h"
+#include "mongo/s/catalog/catalog_manager.h"
#include "mongo/s/query/cluster_cursor_manager.h"
#include "mongo/stdx/memory.h"
@@ -62,7 +62,7 @@ public:
* NOTE: Unit-tests are allowed to call it more than once, provided they reset the object's
* state using clearForUnitTests.
*/
- void init(std::unique_ptr<ForwardingCatalogManager> catalogManager,
+ void init(std::unique_ptr<CatalogManager> catalogManager,
std::unique_ptr<ShardRegistry> shardRegistry,
std::unique_ptr<ClusterCursorManager> cursorManager);
@@ -97,19 +97,14 @@ public:
* Returns a pointer to a CatalogManager to use for accessing catalog data stored on the config
* servers.
*/
- CatalogManager* catalogManager(OperationContext* txn);
-
- /**
- * Returns a direct pointer to the ForwardingCatalogManager. This should only be used for
- * calling methods that are specific to the ForwardingCatalogManager and not part of the generic
- * CatalogManager interface, such as for taking the distributed lock and scheduling replacement
- * of the underlying CatalogManager that the ForwardingCatalogManager is delegating to.
- */
- ForwardingCatalogManager* forwardingCatalogManager();
+ CatalogManager* catalogManager(OperationContext* txn) {
+ return _catalogManager.get();
+ }
CatalogCache* catalogCache() {
return _catalogCache.get();
}
+
ShardRegistry* shardRegistry() {
return _shardRegistry.get();
}
@@ -128,7 +123,7 @@ public:
void clearForUnitTests();
private:
- std::unique_ptr<ForwardingCatalogManager> _catalogManager;
+ std::unique_ptr<CatalogManager> _catalogManager;
std::unique_ptr<CatalogCache> _catalogCache;
std::unique_ptr<ShardRegistry> _shardRegistry;
std::unique_ptr<ClusterCursorManager> _cursorManager;