Merge pull request #4618 from hongchaodeng/master

kv.proto: docs fix on watch event of DELETE/EXPIRE
release-2.3
Anthony Romano 2016-02-25 14:46:24 -08:00
commit 762639c2a3
2 changed files with 4 additions and 2 deletions

View File

@ -76,7 +76,8 @@ type Event struct {
Type Event_EventType `protobuf:"varint,1,opt,name=type,proto3,enum=storagepb.Event_EventType" json:"type,omitempty"`
// A PUT event contains current kv pair.
// A PUT event with kv.Version=1 indicates the creation of a key.
// A DELETE/EXPIRE event contains previous kv pair
// A DELETE/EXPIRE event contains the deleted key with
// its modification revision set to the revision of deletion.
Kv *KeyValue `protobuf:"bytes,2,opt,name=kv" json:"kv,omitempty"`
}

View File

@ -34,6 +34,7 @@ message Event {
EventType type = 1;
// A PUT event contains current kv pair.
// A PUT event with kv.Version=1 indicates the creation of a key.
// A DELETE/EXPIRE event contains previous kv pair
// A DELETE/EXPIRE event contains the deleted key with
// its modification revision set to the revision of deletion.
KeyValue kv = 2;
}