Function tikv::storage::txn::actions::prewrite::prewrite[][src]

pub fn prewrite<S: Snapshot>(
    txn: &mut MvccTxn,
    reader: &mut SnapshotReader<S>,
    txn_props: &TransactionProperties<'_>,
    mutation: Mutation,
    secondary_keys: &Option<Vec<Vec<u8>>>,
    is_pessimistic_lock: bool
) -> Result<(TimeStamp, OldValue)>

Prewrite a single mutation by creating and storing a lock and value.