View Issue Details

IDProjectCategoryView StatusLast Update
0006361OXID eShop (all versions)4.01. Database handlingpublic2016-04-05 14:30
Reporterrobert blank 
Status acknowledgedResolutionopen 
Product Version4.9.7 / 5.2.7 
Target VersionFixed in Version 
Summary0006361: Missleading / wrong comment in regarding Master/Slave configuration
DescriptionIn 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
3. Place the attached PHP script in the shop root directory (next to index.php)
4. Execute the attached PHP script
Additional InformationDocumentation in (and probable in some other places) should be updated
TagsNo tags attached.
ThemeNot defined
BrowserNot defined
PHP VersionNot defined
Database VersionNot defined


robert blank

2016-04-04 14:35


test.php (1,066 bytes)