From 7f5b6f53375d66a91c8771815ca4c44e17d829cb Mon Sep 17 00:00:00 2001 From: mlsmaycon Date: Sat, 12 Sep 2026 12:49:00 +0000 Subject: [PATCH] [management] Merge the two doc comments on dropDatabase --- management/server/store/store.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/management/server/store/store.go b/management/server/store/store.go index 9dde911a4..f46d28889 100644 --- a/management/server/store/store.go +++ b/management/server/store/store.go @@ -1062,10 +1062,9 @@ func cloneMysqlSchema(ctx context.Context, dsn string, tableDDL []string) error } // dropDatabase removes a template that never became usable, so a failed setup -// does not leave it behind on a shared server. -// dropDatabase removes a template database that failed to migrate. The server -// may still be tearing down the sessions the failed migration held, so the -// drop retries while Postgres reports the database as in use. +// does not leave it behind on a shared server. The server may still be tearing +// down the sessions the failed migration held, so the drop retries while +// Postgres reports the database as in use. func dropDatabase(admin *gorm.DB, name string) { if err := execWithTemplateRetry(admin, fmt.Sprintf("DROP DATABASE IF EXISTS %s", name)); err != nil { log.Warnf("failed to drop template database %s: %v", name, err)