Few sanity things for database activity:
authorDomas Mituzas <midom@users.mediawiki.org>
Sat, 12 Jan 2008 22:51:16 +0000 (22:51 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Sat, 12 Jan 2008 22:51:16 +0000 (22:51 +0000)
commit01ccf55545c5393413d27eb27317de49da2f5c06
tree6dfdf6b94ebe4e6d7ce568004b9c98b831c6ece4
parent85dea78ecbf5bda88b577c154b53061a2d5afca2
Few sanity things for database activity:
* Provide function to COMMIT master connection in case there were any changes
* Use it at cleanup, instead of sending too many COMMITs to all slaves
* Don't acquire master connection, if no updates are to be done
* Don't care about closing database connections, let PHP do that (would close HTTP socket few nanoseconds earlier)
includes/LoadBalancer.php
includes/Wiki.php