summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/engine.h
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2014-03-19 11:30:50 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2014-03-19 17:22:55 -0400
commit7be64ae7568306dcbf75335a5e80793f4ce1268d (patch)
treef95d27c7a9e0e8dbd5df53e3c0163f7c22e4518e /src/mongo/scripting/engine.h
parent47ce3aebb48d9b9191584e3173774e29a0a3808c (diff)
downloadmongo-7be64ae7568306dcbf75335a5e80793f4ce1268d.tar.gz
SERVER-13033: Static Initalizer race condition with CreateDirectClient and server-side Javascript
Diffstat (limited to 'src/mongo/scripting/engine.h')
-rw-r--r--src/mongo/scripting/engine.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/scripting/engine.h b/src/mongo/scripting/engine.h
index ecbc44754bd..0bbe1a84d4f 100644
--- a/src/mongo/scripting/engine.h
+++ b/src/mongo/scripting/engine.h
@@ -25,6 +25,7 @@ namespace mongo {
typedef map<string, ScriptingFunction> FunctionCacheMap;
class DBClientWithCommands;
+ class DBClientBase;
struct JSFile {
const char* name;
@@ -245,4 +246,5 @@ namespace mongo {
const char* jsSkipWhiteSpace(const char* raw);
extern ScriptEngine* globalScriptEngine;
+ extern DBClientBase* directDBClient;
}