no need to overwrite data in prewrite
@@ -122,6 +122,11 @@ impl<'a> MvccTxn<'a> {
ttl: lock.ttl,
});
}
+ // No need to overwrite the lock and data.
+ // If we use single delete, we can't put a key multiple times.
+ info!("duplicated prewrite with start_ts {}, ignore it.",
+ self.start_ts);
+ return Ok(());
}
let short_value = if let Mutation::Put((_, ref value)) = mutation {
