etcd Compare proto clarification

17 views
Skip to first unread message

Devin Smith

unread,
Mar 28, 2019, 11:12:16 AM3/28/19
to CoreOS Dev
There seems to be a bit of duplication in the Compare protobuf definition - it contains both an explicit enum CompareTarget, as well as a oneof target_union. I'm not an expert on protobuf, nor etcd, but is there any reason why CompareTarget is necessary? What happens if I send the server an inconsistent Compare (ie, where CompareTarget does not match target_union)?
Reply all
Reply to author
Forward
0 new messages