Skip to content

Commit

Permalink
Cleanup based on PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcfraser committed Jul 29, 2024
1 parent 6a9509a commit fc4cc38
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion db/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ var (
)

var (
BypassReleasedSequenceWait atomic.Bool
BypassReleasedSequenceWait atomic.Bool // Used to optimize single-node testing, see DisableSequenceWaitOnDbRestart
)

const (
Expand Down
15 changes: 0 additions & 15 deletions rest/server_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -844,21 +844,6 @@ func (sc *ServerContext) _getOrAddDatabaseFromConfig(ctx context.Context, config
return nil, err
}

/*
// If audit logging is enabled for the node, log the db setting. This may not represent a change in
// auditing since the last time the db was running on this node, but we don't have any insight into the
// previous state. These are global events (even though they have a db property, so audit these prior to
// adding DatabaseLogCtx to ensure db context filtering isn't applied.
if base.IsAuditEnabled() {
if contextOptions.LoggingConfig.DbAuditEnabled() {
base.Audit(ctx, base.AuditIDAuditEnabled, base.AuditFields{base.AuditFieldAuditScope: "db", base.AuditFieldDatabase: dbName})
} else {
base.Audit(ctx, base.AuditIDAuditDisabled, base.AuditFields{base.AuditFieldAuditScope: "db", base.AuditFieldDatabase: dbName})
}
}
*/

ctx = base.DatabaseLogCtx(ctx, dbName, contextOptions.LoggingConfig)

contextOptions.UseViews = useViews
Expand Down

0 comments on commit fc4cc38

Please sign in to comment.