Skip to content

Commit

Permalink
grpcproxy: forward PrevKv flag in Put
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Romano committed Aug 4, 2017
1 parent c3ae033 commit 6a4194c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions proxy/grpcproxy/kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ func PutRequestToOp(r *pb.PutRequest) clientv3.Op {
if r.IgnoreLease {
opts = append(opts, clientv3.WithIgnoreLease())
}
if r.PrevKv {
opts = append(opts, clientv3.WithPrevKV())
}
return clientv3.OpPut(string(r.Key), string(r.Value), opts...)
}

Expand Down

0 comments on commit 6a4194c

Please sign in to comment.