Exemplo 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)
	}
}
Exemplo 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))
}
Exemplo 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))
}