View Issue Details

IDProjectCategoryView StatusLast Update
0006361OXID eShop (all versions)4.01. Database handlingpublic2016-04-05 14:30
Reporterrobert blank 
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version4.9.7 / 5.2.7 
Target VersionFixed in Version 
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.
ThemeNot defined
BrowserNot defined
PHP VersionNot defined
MySQL VersionNot defined

Activities

robert blank

2016-04-04 14:35

reporter  

test.php (1,066 bytes)