From c8ae694deaa148ea7d30586ff0f46730b53dc4fd Mon Sep 17 00:00:00 2001 From: needkane Date: Fri, 22 May 2020 03:42:44 -0400 Subject: [PATCH] etcdserver: Missing the cfg.Logger causes panic --- etcdserver/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etcdserver/server.go b/etcdserver/server.go index 5e1925ce090..5caf6e8ab45 100644 --- a/etcdserver/server.go +++ b/etcdserver/server.go @@ -509,7 +509,7 @@ func NewServer(cfg ServerConfig) (srv *EtcdServer, err error) { } serverID.With(prometheus.Labels{"server_id": id.String()}).Set(1) - srv.applyV2 = &applierV2store{store: srv.v2store, cluster: srv.cluster} + srv.applyV2 = NewApplierV2(cfg.Logger, srv.v2store, srv.cluster) srv.be = be minTTL := time.Duration((3*cfg.ElectionTicks)/2) * heartbeat