From c721682b369b4c334dfd39a9db5e53baf7039059 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 b5817f32cd2d..7e61f570156e 100644 --- a/auth/store.go +++ b/auth/store.go @@ -1178,7 +1178,6 @@ func NewAuthStore(lg *zap.Logger, be backend.Backend, tp TokenProvider, bcryptCo if as.Revision() == 0 { as.commitRevision(tx) - as.saveConsistentIndex(tx) } as.setupMetricsReporter()