Explorar el Código

etcdctlv3: add db size and raft status in protobuffer

mqliang hace 10 años
padre
commit
c3da2631bf
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      etcdserver/etcdserverpb/rpc.proto

+ 4 - 0
etcdserver/etcdserverpb/rpc.proto

@@ -499,6 +499,10 @@ message StatusRequest {
 message StatusResponse {
   ResponseHeader header = 1;
   string version = 2;
+  int64 dbSize = 3;
+  uint64 leader = 4;
+  uint64 raftIndex = 5;
+  uint64 raftTerm = 6;
 }
 
 message AuthEnableRequest {