summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/mozjs/implscope.h
diff options
context:
space:
mode:
authorBen Caimano <ben.caimano@10gen.com>2018-06-05 16:35:49 -0400
committerBen Caimano <ben.caimano@10gen.com>2018-06-08 19:54:07 -0400
commitbb2de3700ee5b8eec9aa51cdbd2ecec937480c6c (patch)
tree4fb05247a5db5cd1149a7a9903550eb843458c5e /src/mongo/scripting/mozjs/implscope.h
parente95edfa14170e05a63a51df54d39e63cc49dbe91 (diff)
downloadmongo-bb2de3700ee5b8eec9aa51cdbd2ecec937480c6c.tar.gz
SERVER-34770 Retry on JavaScript execution interruptions in stepdown suites
Diffstat (limited to 'src/mongo/scripting/mozjs/implscope.h')
-rw-r--r--src/mongo/scripting/mozjs/implscope.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/scripting/mozjs/implscope.h b/src/mongo/scripting/mozjs/implscope.h
index a8af88e8549..4a8dcba9aef 100644
--- a/src/mongo/scripting/mozjs/implscope.h
+++ b/src/mongo/scripting/mozjs/implscope.h
@@ -421,8 +421,8 @@ private:
JS::HandleObject _global;
std::vector<JS::PersistentRootedValue> _funcs;
InternedStringTable _internedStrings;
- std::atomic<bool> _pendingKill;
- std::mutex _sleepMutex;
+ Status _killStatus;
+ mutable std::mutex _mutex;
std::condition_variable _sleepCondition;
std::string _error;
unsigned int _opId; // op id for this scope