summaryrefslogtreecommitdiff
path: root/jstests/libs/kill_sessions.js
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2017-08-30 11:15:12 -0400
committerMax Hirschhorn <max.hirschhorn@mongodb.com>2017-08-30 11:15:12 -0400
commite9f25df1ee004319caa493fe4d4b5c34948df9f3 (patch)
treeee3a2ae5566fb0b13deab598cca784a6439f1d1c /jstests/libs/kill_sessions.js
parent1dc2afc8b5ce09d88535049df2ad72adc0434cc8 (diff)
downloadmongo-e9f25df1ee004319caa493fe4d4b5c34948df9f3.tar.gz
SERVER-30686 Wire up SessionOptions in more places.
Creates a _DummyDriverSession instance when startSession() isn't called so that the DB and DBCollection implementations can rely on the same session-related APIs.
Diffstat (limited to 'jstests/libs/kill_sessions.js')
-rw-r--r--jstests/libs/kill_sessions.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/libs/kill_sessions.js b/jstests/libs/kill_sessions.js
index b3d6e9dec56..ca833d1f929 100644
--- a/jstests/libs/kill_sessions.js
+++ b/jstests/libs/kill_sessions.js
@@ -212,7 +212,7 @@ var _kill_sessions_api_module = (function() {
}
CursorHandle.prototype.getLsid = function() {
- return this._session._serverSession._id;
+ return this._session._serverSession.handle.getId();
};
CursorHandle.prototype.join = function() {
@@ -661,7 +661,7 @@ var _kill_sessions_api_module = (function() {
var session = fixture._clientToExecuteVia.startSession();
var obj = {};
- obj[cmd] = [session._serverSession._id].map(genArg(execUserCred));
+ obj[cmd] = [session._serverSession.handle.getId()].map(genArg(execUserCred));
fixture.assertKillFailed("admin", obj);
session.endSession();
},