Skip to content

Commit

Permalink
Remove stat when a new db config is brought up while initializing thi…
Browse files Browse the repository at this point in the history
…s one
  • Loading branch information
torcolvin committed Feb 12, 2025
1 parent ffbdcd7 commit a9b6b3b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion rest/server_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,6 @@ func (sc *ServerContext) asyncDatabaseOnline(nonCancelCtx base.NonCancellableCon
// Before bringing the database online, ensure that the database hasn't been modified while we waited for initialization to complete
currentDbVersion := sc.GetDbVersion(dbc.Name)
if currentDbVersion != version {
dbc.DbStats.DatabaseStats.TotalOnlineFatalErrors.Add(1)
base.InfofCtx(ctx, base.KeyConfig, "Database version changed while waiting for async init - cancelling obsolete online request. Old version: %s New version: %s", version, currentDbVersion)
atomic.CompareAndSwapUint32(&dbc.State, db.DBStarting, db.DBOffline)
return
Expand Down

0 comments on commit a9b6b3b

Please sign in to comment.