mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserverpb: add lease to txn comparison targets
Also shifts down fields following target_union in case there's any more reason to expand. OK since range_end is still pre-release.
This commit is contained in:
parent
2951faf770
commit
d8ca2bbffb
@ -511,6 +511,7 @@ message Compare {
|
|||||||
CREATE = 1;
|
CREATE = 1;
|
||||||
MOD = 2;
|
MOD = 2;
|
||||||
VALUE= 3;
|
VALUE= 3;
|
||||||
|
LEASE = 4;
|
||||||
}
|
}
|
||||||
// result is logical comparison operation for this comparison.
|
// result is logical comparison operation for this comparison.
|
||||||
CompareResult result = 1;
|
CompareResult result = 1;
|
||||||
@ -527,10 +528,14 @@ message Compare {
|
|||||||
int64 mod_revision = 6;
|
int64 mod_revision = 6;
|
||||||
// value is the value of the given key, in bytes.
|
// value is the value of the given key, in bytes.
|
||||||
bytes value = 7;
|
bytes value = 7;
|
||||||
|
// lease is the lease id of the given key.
|
||||||
|
int64 lease = 8;
|
||||||
|
// leave room for more target_union field tags, jump to 64
|
||||||
}
|
}
|
||||||
|
|
||||||
// range_end compares the given target to all keys in the range [key, range_end).
|
// range_end compares the given target to all keys in the range [key, range_end).
|
||||||
// See RangeRequest for more details on key ranges.
|
// See RangeRequest for more details on key ranges.
|
||||||
bytes range_end = 8;
|
bytes range_end = 64;
|
||||||
// TODO: fill out with most of the rest of RangeRequest fields when needed.
|
// TODO: fill out with most of the rest of RangeRequest fields when needed.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user