Explorar el Código

etcdctl/ctlv3: remove mvccpb.EXPIRE in mirror cmd

Gyu-Ho Lee hace 9 años
padre
commit
c43e59338f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      etcdctl/ctlv3/command/make_mirror_command.go

+ 1 - 1
etcdctl/ctlv3/command/make_mirror_command.go

@@ -128,7 +128,7 @@ func makeMirror(ctx context.Context, c *clientv3.Client, dc *clientv3.Client) er
 			case mvccpb.PUT:
 				ops = append(ops, clientv3.OpPut(string(ev.Kv.Key), string(ev.Kv.Value)))
 				atomic.AddInt64(&total, 1)
-			case mvccpb.DELETE, mvccpb.EXPIRE:
+			case mvccpb.DELETE:
 				ops = append(ops, clientv3.OpDelete(string(ev.Kv.Key)))
 				atomic.AddInt64(&total, 1)
 			default: