jstests/concurrency/fsm_workloads/insert_ttl_timeseries.js
/**
         * Insert a single measurement for the current thread id.
         */
Insert a single measurement for the current thread id.
Insert a single measurement for the current thread id .
function insertOne(db, collName) {
            const coll = this.getCollection(db, collName);
            const res = coll.insert({
                [metaFieldName]: this.tid,
                [timeFieldName]: getTime(),
                data: Random.rand(),
            });
            assertAlways.commandWorked(res);
            assertAlways.eq(1, res.nInserted, tojson(res));
        }
function insertOne ( db , collName ) { const coll = this . getCollection ( db , collName ) ; const res = coll . insert ( { [ metaFieldName ] : this . tid , [ timeFieldName ] : getTime ( ) , data : Random . rand ( ) , } ) ; assertAlways . commandWorked ( res ) ; assertAlways . eq ( 1 , res . nInserted , tojson ( res ) ) ; }
Insert a single measurement for the current thread id.
Insert a single measurement for the current thread id .