summaryrefslogtreecommitdiff
path: root/adodb-loadbalancer.inc.php
AgeCommit message (Collapse)AuthorFilesLines
2023-04-15Minor fixes to load balancer for PHP 8.2+ warningsMike-Benoit1-6/+6
Fixes #951 Signed-off-by: Damien Regad <dregad@mantisbt.org> Updated Changelog and added PR reference in commit message, back-ported to hotfix/5.22 branch.
2022-01-08Coding guidelinesDamien Regad1-37/+39
2022-01-08Rename _getConnection() to getConnectionById()Mike-Benoit1-4/+4
Following convention for public method. Since there was already a getConnection() function, this probably makes more sense anyways. Issue #784
2022-01-08Support calling a function upon load balancer connectionMike-Benoit1-4/+42
For things like determining replication lag and ignoring the connection if its out of spec. - Make a few methods public so they can be called outside the class, to better assist with unit tests and advanced use cases. - Don't make a connection to the database when calls to 'setcustommetatype' are made, as a connection is not needed for those calls of course. - If no connection can be established, throw exception. Fixes #784
2021-08-17Redo Merge branch 'hotfix/5.21' Standardized file headersDamien Regad1-12/+12
Try to do it right this time... # Conflicts: # adodb-memcache.lib.inc.php Fixes #751
2021-08-17Reset version to avoid merge conflictsDamien Regad1-1/+1
Fixes #751
2021-08-17Revert changes since Standardized file headers mergeDamien Regad1-12/+12
The conflicts resolution applied when merging the Standardized file headers (commit e9dcce3df24912ad869d0193f0b419f2309101fc) was seriously messed up, actually overwriting a number of changes in the master branch. Rather than trying to go and fix things one by one which has a high risk of messing things further, it's easier to redo the merge from a clean slate, so this commit reverts the following: - "Merge branch 'hotfix/5.21' Standardized file headers", e9dcce3df24912ad869d0193f0b419f2309101fc - "Merge tag 'v5.21.1'", 5f437df3104159d5d659f60e31bef8d33c34995f - "Reset version to 5.22.0-dev" af9234a525c3255af051a330164486d73be4c63a - "Fix incorrect resolution of merge conflicts" a6733f61b0165b366c8d2c70d9af82edc3881951. - "Fix syntax error in toexport.inc.php" 20b01e83cb61b6b2460f64c7d1277c5f4cc28574. Fixes #751
2021-08-14Standard file header: /Damien Regad1-12/+12
2021-03-08Bump version to 5.21.1-devDamien Regad1-1/+1
2021-02-27Bump version to 5.21.0v5.21.0Damien Regad1-1/+1
2021-02-02Bump version to 5.21.0-rc.1v5.21.0-rc.1Damien Regad1-1/+1
2020-12-20Bump version to 5.21.0-beta.1v5.21.0-beta.1Damien Regad1-1/+1
2020-12-19adodb.org is now served over SSLDamien Regad1-1/+1
Change web site references from http://adodb.org to https.
2020-01-25More whitespace, break long linesDamien Regad1-118/+154
2020-01-25Logical operators: use &&,|| instead of AND,ORDamien Regad1-5/+5
2020-01-25Various whitespace fixesDamien Regad1-178/+181
2020-01-25Missing return statementDamien Regad1-2/+1
The function could reach its end without actually returning any value. Moving the `return false` statement out of the if/else block to ensure this does not happen.
2020-01-25Missing `new` keyword when throwing ExceptionDamien Regad1-1/+1
2020-01-25Remove unreachable codeDamien Regad1-4/+0
The return statements are preceded by a throw, so they will never be executed.
2020-01-25Various PHPDoc fixesDamien Regad1-11/+13
2020-01-25File header PHPDoc blockDamien Regad1-19/+24
2020-01-25Fix coding style.mike.benoit1-2/+2
2020-01-25Fix bug with __set() not actually setting the property and not doing it on ↵mike.benoit1-1/+5
all connection objects either.
2020-01-25Remove unused function argument.mike.benoit1-1/+1
2020-01-25Synchronize last few years of bug fixes and improvements.mike.benoit1-49/+95
2020-01-25Make a public rather than protected variable, so it can be properly set by ↵mike.benoit1-5/+6
outside code.
2020-01-25Replace 'master' with 'write' and 'slave' with 'readonly' to be more ↵mike.benoit1-40/+41
politically correct.
2020-01-25Reformat to strict PSR-2 style.mike.benoit1-553/+575
2020-01-25Few more minor cleanups.mike.benoit1-5/+5
2020-01-25Cleanup code, make proper docblocks, and begin switch to PSR-2 standard.mike.benoit1-76/+281
2020-01-25Improve query routing to master when its non-readonlymike.benoit1-2/+18
2020-01-25Fix code style.mike.benoit1-11/+11
2020-01-25Load balancer/query read/write splitting...mike.benoit1-0/+437