File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
internal/controller/postgrescluster Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -231,8 +231,6 @@ func (r *Reconciler) reconcilePostgresDatabases(
231
231
}
232
232
}
233
233
234
- // Calculate a hash of the SQL that should be executed in PostgreSQL.
235
-
236
234
var pgAuditOK , postgisInstallOK bool
237
235
create := func (ctx context.Context , exec postgres.Executor ) error {
238
236
if pgAuditOK = pgaudit .EnableInPostgreSQL (ctx , exec ) == nil ; ! pgAuditOK {
@@ -259,6 +257,7 @@ func (r *Reconciler) reconcilePostgresDatabases(
259
257
return postgres .CreateDatabasesInPostgreSQL (ctx , exec , databases .List ())
260
258
}
261
259
260
+ // Calculate a hash of the SQL that should be executed in PostgreSQL.
262
261
revision , err := safeHash32 (func (hasher io.Writer ) error {
263
262
// Discard log messages about executing SQL.
264
263
return create (logging .NewContext (ctx , logging .Discard ()), func (
You can’t perform that action at this time.
0 commit comments