diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-07-10 15:44:26 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-07-26 15:13:34 -0400 |
commit | 191931c4390ab1ede373e6772aa4d3999518fdaf (patch) | |
tree | c35ed32b3570ee9c420f1ee27e6aeb45907952a8 /src/mongo/scripting/engine.h | |
parent | 516e0a50a0fb0e9df45cdc5f74cf0308c3706366 (diff) | |
download | mongo-191931c4390ab1ede373e6772aa4d3999518fdaf.tar.gz |
SERVER-28509 Flatten DBClient hierarchy to just DBClientBase and subclasses
Diffstat (limited to 'src/mongo/scripting/engine.h')
-rw-r--r-- | src/mongo/scripting/engine.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/scripting/engine.h b/src/mongo/scripting/engine.h index e61fde92774..ff6dd1b1616 100644 --- a/src/mongo/scripting/engine.h +++ b/src/mongo/scripting/engine.h @@ -38,7 +38,6 @@ typedef unsigned long long ScriptingFunction; typedef BSONObj (*NativeFunction)(const BSONObj& args, void* data); typedef std::map<std::string, ScriptingFunction> FunctionCacheMap; -class DBClientWithCommands; class DBClientBase; class OperationContext; @@ -264,10 +263,10 @@ public: void setScopeInitCallback(void (*func)(Scope&)) { _scopeInitCallback = func; } - static void setConnectCallback(void (*func)(DBClientWithCommands&)) { + static void setConnectCallback(void (*func)(DBClientBase&)) { _connectCallback = func; } - static void runConnectCallback(DBClientWithCommands& c) { + static void runConnectCallback(DBClientBase& c) { if (_connectCallback) _connectCallback(c); } @@ -285,7 +284,7 @@ protected: void (*_scopeInitCallback)(Scope&); private: - static void (*_connectCallback)(DBClientWithCommands&); + static void (*_connectCallback)(DBClientBase&); }; void installGlobalUtils(Scope& scope); |