Add IAM (re)load timing logs (#19984)

This is useful to debug large IAM load times - the usual cause is when
there are a large amount of temporary accounts.
This commit is contained in:
Aditya Manthramurthy
2024-06-25 10:33:10 -07:00
committed by GitHub
parent 22c5a5b91b
commit 602f6a9ad0
2 changed files with 49 additions and 1 deletions

View File

@@ -554,7 +554,7 @@ func (store *IAMStoreSys) LoadIAMCache(ctx context.Context, firstTime bool) erro
return err
}
} else {
// Only non-object IAM store (i.e. only etcd backend).
bootstrapTraceMsgFirstTime("loading policy documents")
if err := store.loadPolicyDocs(ctx, newCache.iamPolicyDocsMap); err != nil {
return err