Dynamically sets the database connection for Geo::BaseRegistry model
If Gitlab::Geo.secondary? changes, we need to reinitialize the connection properly in the model to avoid requiring a full unicorn restart.
Please register or sign in to comment
If Gitlab::Geo.secondary? changes, we need to reinitialize the connection properly in the model to avoid requiring a full unicorn restart.