View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006361 | OXID eShop (all versions) | 4.01. Database handling | public | 2016-04-04 14:35 | 2024-03-13 10:10 |
Reporter | robert blank | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.9.7 / 5.2.7 | ||||
Fixed in Version | 6.0.0-rc.2 | ||||
Summary | 0006361: Missleading / wrong comment in config.inc.php regarding Master/Slave configuration | ||||
Description | In 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 Reproduce | 1. 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 Information | Documentation in config.inc.php (and probable in some other places) should be updated | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Theme | Not defined | ||||
Browser | Not defined | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||