Browse Source

kv.proto: docs fix on watch event of DELETE/EXPIRE

Hongchao Deng 9 years ago
parent
commit
6d32e44b0c
2 changed files with 4 additions and 2 deletions
  1. 2 1
      storage/storagepb/kv.pb.go
  2. 2 1
      storage/storagepb/kv.proto

+ 2 - 1
storage/storagepb/kv.pb.go

@@ -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"`
 }
 

+ 2 - 1
storage/storagepb/kv.proto

@@ -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;
 }