diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2019-10-25 19:51:50 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-10-25 19:51:50 +0000 |
commit | a54df9e45d85a670bc4dc40339d76347865fab69 (patch) | |
tree | d430ebf24bba4c591cb6dfda6286ea4e327e30b2 /src/mongo/scripting | |
parent | 8fc28f0773ca1efb0a43cc5590b9ca8b9e50559e (diff) | |
download | mongo-a54df9e45d85a670bc4dc40339d76347865fab69.tar.gz |
SERVER-43936 Implement simpler, quicker python based C++ linter
Diffstat (limited to 'src/mongo/scripting')
-rw-r--r-- | src/mongo/scripting/mozjs/implscope.cpp | 1 | ||||
-rw-r--r-- | src/mongo/scripting/mozjs/implscope.h | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/scripting/mozjs/implscope.cpp b/src/mongo/scripting/mozjs/implscope.cpp index 0e03c5573af..e78d462d7e7 100644 --- a/src/mongo/scripting/mozjs/implscope.cpp +++ b/src/mongo/scripting/mozjs/implscope.cpp @@ -40,6 +40,7 @@ #include <jsfriendapi.h> #include "mongo/base/error_codes.h" +#include "mongo/config.h" #include "mongo/db/operation_context.h" #include "mongo/platform/decimal128.h" #include "mongo/platform/mutex.h" diff --git a/src/mongo/scripting/mozjs/implscope.h b/src/mongo/scripting/mozjs/implscope.h index d3b5d590fc2..c763640e5b9 100644 --- a/src/mongo/scripting/mozjs/implscope.h +++ b/src/mongo/scripting/mozjs/implscope.h @@ -379,7 +379,7 @@ private: public: MozRuntime(const MozJSScriptEngine* engine); - std::thread _thread; + std::thread _thread; // NOLINT std::unique_ptr<JSRuntime, std::function<void(JSRuntime*)>> _runtime; std::unique_ptr<JSContext, std::function<void(JSContext*)>> _context; }; @@ -420,7 +420,7 @@ private: unsigned int _opId; // op id for this scope OperationContext* _opCtx; // Op context for DbEval std::size_t _inOp; - std::atomic<bool> _pendingGC; + std::atomic<bool> _pendingGC; // NOLINT ConnectState _connectState; Status _status; std::string _parentStack; |