diff options
Diffstat (limited to 'src/mongo/s/grid.h')
-rw-r--r-- | src/mongo/s/grid.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mongo/s/grid.h b/src/mongo/s/grid.h index 7136e69b5c8..430ac7a29f6 100644 --- a/src/mongo/s/grid.h +++ b/src/mongo/s/grid.h @@ -40,6 +40,7 @@ class BSONObj; class CatalogCache; class CatalogManager; class DBConfig; +class OperationContext; class SettingsType; class ShardRegistry; template <typename T> @@ -68,7 +69,8 @@ public: /** * Implicitly creates the specified database as non-sharded. */ - StatusWith<std::shared_ptr<DBConfig>> implicitCreateDb(const std::string& dbName); + StatusWith<std::shared_ptr<DBConfig>> implicitCreateDb(OperationContext* txn, + const std::string& dbName); /** * @return true if shards and config servers are allowed to use 'localhost' in address @@ -89,11 +91,12 @@ public: /** * Returns true if the config server settings indicate that the balancer should be active. */ - bool getConfigShouldBalance() const; + bool getConfigShouldBalance(OperationContext* txn) const; - CatalogManager* catalogManager() { + CatalogManager* catalogManager(OperationContext* txn) { return _catalogManager.get(); } + CatalogCache* catalogCache() { return _catalogCache.get(); } |