jstests/noPassthrough/failcommand_failpoint_not_parallel.js
/**
 * Starts and returns a thread for updating the test document by incrementing the
 * "run_id" by one.
 */
Starts and returns a thread for updating the test document by incrementing the
"run_id" by one.
Starts and returns a thread for updating the test document by incrementing the " run_id " by one .
function startIncrementRunIdThread() {
    const latch = new CountDownLatch(1);
    let thread = new Thread(function(connStr, dbName, latch) {
        jsTest.log("Sending update");
        const client = new Mongo(connStr);
        const db = client.getDB(dbName);
        latch.countDown();
        assert.commandWorked(db.runCommand({
            update: "c",
            updates: [{q: {_id: 'block_test'}, u: {$inc: {run_id: 1}}}],
        }));
        jsTest.log("Successfully applied update");
    }, conn.name, kDbName, latch);
    thread.start();
    latch.await();
    return thread;
}
function startIncrementRunIdThread ( ) { const latch = new CountDownLatch ( 1 ) ; let thread = new Thread ( function ( connStr , dbName , latch ) { jsTest . log ( "Sending update" ) ; const client = new Mongo ( connStr ) ; const db = client . getDB ( dbName ) ; latch . countDown ( ) ; assert . commandWorked ( db . runCommand ( { update : "c" , updates : [ { q : { _id : 'block_test' } , u : { $inc : { run_id : 1 } } } ] , } ) ) ; jsTest . log ( "Successfully applied update" ) ; } , conn . name , kDbName , latch ) ; thread . start ( ) ; latch . await ( ) ; return thread ; }
Starts and returns a thread for updating the test document by incrementing the
 "run_id" by one.
Starts and returns a thread for updating the test document by incrementing the " run_id " by one .