From e9d2b4210f9cc623fba8ffa85425901a83cd155f Mon Sep 17 00:00:00 2001 From: tangcong Date: Tue, 3 Mar 2020 17:38:37 +0800 Subject: [PATCH] auth: no need to save consistentIndex in NewAuthStore(no command is executed) --- auth/store.go | 1 - 1 file changed, 1 deletion(-) diff --git a/auth/store.go b/auth/store.go index 802974584948..beb07c0874cb 100644 --- a/auth/store.go +++ b/auth/store.go @@ -1070,7 +1070,6 @@ func NewAuthStore(lg *zap.Logger, be backend.Backend, tp TokenProvider, bcryptCo if as.Revision() == 0 { as.commitRevision(tx) - as.saveConsistentIndex(tx) } as.setupMetricsReporter()