jstests/replsets/kill_sessions_with_prepared_transaction.js
// Produce a currentOp filter for a prepared transaction on a given session.
Produce a currentOp filter for a prepared transaction on a given session.
Produce a currentOp filter for a prepared transaction on a given session .
function preparedTxnOpFilter(session) {
    return {
        "lsid.id": session.getSessionId().id,
        "transaction.timePreparedMicros": {$exists: true}
    };
}
function preparedTxnOpFilter ( session ) { return { "lsid.id" : session . getSessionId ( ) . id , "transaction.timePreparedMicros" : { $exists : true } } ; }
Produce a currentOp filter for a prepared transaction on a given session.
Produce a currentOp filter for a prepared transaction on a given session .