File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
dist-persist/wbstack/src/Settings
dist/wbstack/src/Settings Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 22
33Tags have the format: ` <MediaWiki core version>-<PHP Version>-<date>-<build number> `
44
5+ ## 1.39-7.4-20230524-0
6+ - Add condition for skipping Db replica config in case replica hostname is not set (empty string)
7+
58## 1.39-7.4-20230522-0
69- Allow email-confirmed users to add external urls (T327752)
710
Original file line number Diff line number Diff line change 120120// For example schema generation or localization cache reload
121121// WBS_DOMAIN=maint php ./w/maintenance/update.php --schema sql.sql --quick
122122// As in these contexts there is often no replica.... and thus one would fail...
123- if ( !$ wwDomainIsMaintenance ){
123+ // Also: skip the config if host name is empty. Useful in case replication breaks and we want to disable it.
124+ if ( !$ wwDomainIsMaintenance && !empty (getenv ('MW_DB_SERVER_REPLICA ' ))){
124125 $ wgDBservers [] = [
125126 'host ' => getenv ('MW_DB_SERVER_REPLICA ' ),
126127 'dbname ' => $ wgDBname ,
Original file line number Diff line number Diff line change 120120// For example schema generation or localization cache reload
121121// WBS_DOMAIN=maint php ./w/maintenance/update.php --schema sql.sql --quick
122122// As in these contexts there is often no replica.... and thus one would fail...
123- if ( !$ wwDomainIsMaintenance ){
123+ // Also: skip the config if host name is empty. Useful in case replication breaks and we want to disable it.
124+ if ( !$ wwDomainIsMaintenance && !empty (getenv ('MW_DB_SERVER_REPLICA ' ))){
124125 $ wgDBservers [] = [
125126 'host ' => getenv ('MW_DB_SERVER_REPLICA ' ),
126127 'dbname ' => $ wgDBname ,
You can’t perform that action at this time.
0 commit comments