pub fn new(cid: u64, cmd: Command, lock: Lock, cb: StorageCb) -> RunningCtx {
        let tag = cmd.tag();
        let ts = cmd.ts();
        let region_id = cmd.get_context().get_region_id();
        RunningCtx {
            cid: cid,
            cmd: Some(cmd),
            lock: lock,
            callback: Some(cb),
            tag: tag,
            ts: ts,
            region_id: region_id,
            latch_timer: Some(
                SCHED_LATCH_HISTOGRAM_VEC
                    .with_label_values(&[tag])
                    .start_coarse_timer(),
            ),
            _timer: SCHED_HISTOGRAM_VEC
                .with_label_values(&[tag])
                .start_coarse_timer(),
            slow_timer: SlowTimer::new(),
        }
    }
/// Creates a context for a running command.
Creates a context for a running command.
Creates a context for a running command .
pub fn new(cid: u64, cmd: Command, lock: Lock, cb: StorageCb) -> RunningCtx {
        let tag = cmd.tag();
        let ts = cmd.ts();
        let region_id = cmd.get_context().get_region_id();
        RunningCtx {
            cid: cid,
            cmd: Some(cmd),
            lock: lock,
            callback: Some(cb),
            tag: tag,
            ts: ts,
            region_id: region_id,
            latch_timer: Some(
                SCHED_LATCH_HISTOGRAM_VEC
                    .with_label_values(&[tag])
                    .start_coarse_timer(),
            ),
            _timer: SCHED_HISTOGRAM_VEC
                .with_label_values(&[tag])
                .start_coarse_timer(),
            slow_timer: SlowTimer::new(),
        }
    }
pub fn new ( cid : u64 , cmd : Command , lock : Lock , cb : StorageCb ) -> RunningCtx { let tag = cmd . tag ( ) ; let ts = cmd . ts ( ) ; let region_id = cmd . get_context ( ) . get_region_id ( ) ; RunningCtx { cid : cid , cmd : Some ( cmd ) , lock : lock , callback : Some ( cb ) , tag : tag , ts : ts , region_id : region_id , latch_timer : Some ( SCHED_LATCH_HISTOGRAM_VEC . with_label_values ( & [ tag ] ) . start_coarse_timer ( ) , ) , _timer : SCHED_HISTOGRAM_VEC . with_label_values ( & [ tag ] ) . start_coarse_timer ( ) , slow_timer : SlowTimer :: new ( ) , } }
Creates a context for a running command.
Creates a context for a running command .
cid
u64
cmd
Command
lock
Lock
cb
StorageCb
cid
u64
cmd
Command
lock
Lock
cb
StorageCb