예제 #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)
	}
}
예제 #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))
}
예제 #3
0
파일: range.go 프로젝트: embark/cockroach
// 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))
}