Esempio n. 1
0
// Delete deletes the key and value specified by key.
func (r *Range) Delete(args *proto.DeleteRequest, reply *proto.DeleteResponse) {
	if err := r.engine.Clear(args.Key); err != nil {
		reply.SetGoError(err)
	}
}
Esempio n. 2
0
// Delete deletes the key and value specified by key.
func (r *Range) Delete(batch engine.Engine, ms *engine.MVCCStats, args *proto.DeleteRequest, reply *proto.DeleteResponse) {
	reply.SetGoError(engine.MVCCDelete(batch, ms, args.Key, args.Timestamp, args.Txn))
}
Esempio n. 3
0
// Delete deletes the key and value specified by key.
func (r *Range) Delete(args *proto.DeleteRequest, reply *proto.DeleteResponse) {
	reply.SetGoError(r.mvcc.Delete(args.Key, args.Timestamp, args.Txn))
}