View Issue Details

IDProjectCategoryView StatusLast Update
0006361OXID eShop (all versions)4.01. Database handlingpublic2024-03-13 10:10
Reporterrobert blank Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.9.7 / 5.2.7 
Fixed in Version6.0.0-rc.2 
Summary0006361: Missleading / wrong comment in config.inc.php regarding Master/Slave configuration
DescriptionIn config.inc.php it says:
"To turn on balance between Master and Slave, Mater IP or host must be added to aSlaveHost array."

Apart from the fact that it should probably say:
"To turn on balance between Master and Slave, Slave IPs or hostnames must be added to aSlaveHost array.",

this suggest that the default setting "$this->aSlaveHosts = null;" will not turn on master slave balance, but this is not true.

To turn on master-slave balance it is only necessary to have a proper licence.

See \oxLegacyDb::getDb, in this function only the parameter "type" and the result of \oxLegacyDb::_checkSlaveLicence determine whether the slave database connection is returned or not.
In case of "$this->aSlaveHosts = null;" the slave database connection is set to the same connection as the master database connection.
Steps To Reproduce1. Use a master-slave OXID EE licence
2. Set "$this->aSlaveHosts = null;" in config.inc.php
3. Place the attached PHP script in the shop root directory (next to index.php)
4. Execute the attached PHP script
Additional InformationDocumentation in config.inc.php (and probable in some other places) should be updated
TagsNo tags attached.
Attached Files
test.php (1,066 bytes)
ThemeNot defined
BrowserNot defined
PHP VersionNot defined
Database VersionNot defined

Activities

SvenBrunk

2024-03-13 10:07

administrator   ~0016400

This has been removed from config.inc.php.dist