From 0550673f7eaf4b1b46d544fbcfd4642493c37d2d Mon Sep 17 00:00:00 2001 From: Ulf Wendel Date: Wed, 28 Sep 2011 10:44:35 +0000 Subject: [PATCH] Some of the most pressing fixes proposed by Johannes. More to come next week. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@317434 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mysqlnd_ms/concepts.xml | 19 +++++++++++++------ reference/mysqlnd_ms/configure.xml | 9 ++++----- .../mysqlnd-ms-get-last-used-connection.xml | 8 ++++---- reference/mysqlnd_ms/quickstart.xml | 16 +++++++++------- reference/mysqlnd_ms/setup.xml | 17 ++++++++++------- 5 files changed, 40 insertions(+), 29 deletions(-) diff --git a/reference/mysqlnd_ms/concepts.xml b/reference/mysqlnd_ms/concepts.xml index c77216d223..9c55dbc4cd 100755 --- a/reference/mysqlnd_ms/concepts.xml +++ b/reference/mysqlnd_ms/concepts.xml @@ -74,7 +74,7 @@ mysqli, mysql, PDO_MYSQL connection - handle and a MySQL wire connection. If using the plugin a + handle and a MySQL network connection. If using the plugin a mysqli, mysql, PDO_MYSQL connection @@ -121,7 +121,7 @@ - Session system variables and session user variables + The current database set using USE @@ -197,6 +197,7 @@ mysql_db_query, mysql_list_fields, mysqli_select_db. + Note, that SQL USE is not monitored. Since 1.0.0. @@ -208,6 +209,7 @@ Called by the following user API calls: mysql_set_charset. mysqli_set_charset. + Note, that SQL SET NAMES is not monitored. Since 1.0.0. @@ -245,7 +247,7 @@ Called by the following user API calls: mysqli_autocommit, - PDO::setAttribute(PDO::ATTR_AUTOCOMMIT). + PDO::setAttribute(PDO::ATTR_AUTOCOMMIT). Since 1.0.0. PHP >= 5.4.0. @@ -382,7 +384,7 @@ mode. The library function set_autocommit() is called by the mysqli_autocommit and - PDO::setAttribute(PDO::ATTR_AUTOCOMMIT) user API calls. + PDO::setAttribute(PDO::ATTR_AUTOCOMMIT) user API calls. The experimental pluging configuration option @@ -463,7 +465,11 @@ the SQL hint /*ms=slave*/ or a slave had been chosen for running the previous query and the query starts with the SQL hint /*ms=last_used*/. In all other cases the query will - be send to the MySQL replication master server. + be send to the MySQL replication master server. It is recommended to + use the constants MYSQLND_MS_SLAVE_SWITCH, + MYSQLND_MS_MASTER_SWITCH and MYSQLND_MS_LAST_USED_SWITCH + instead of /*ms=slave*/. Please see, + constants. SQL hints are a special kind of standard compliant SQL comments. The plugin @@ -476,7 +482,8 @@ The built-in read-write splitter can be replaced by a user-defined one, see also - mysqlnd_ms_set_user_pick_server. + user + filter. A user-defined read-write splitter can ask the built-in logic to make diff --git a/reference/mysqlnd_ms/configure.xml b/reference/mysqlnd_ms/configure.xml index 38dcb297da..9b48b32dd7 100755 --- a/reference/mysqlnd_ms/configure.xml +++ b/reference/mysqlnd_ms/configure.xml @@ -5,11 +5,10 @@ &reftitle.install; - - The mysqlnd replication and load balancing plugin is in alpha status. - It is not feature complete. - - + + The mysqlnd replication and load balancing plugin is in beta status. + + &pecl.moved; diff --git a/reference/mysqlnd_ms/functions/mysqlnd-ms-get-last-used-connection.xml b/reference/mysqlnd_ms/functions/mysqlnd-ms-get-last-used-connection.xml index 3570dada8a..8f19bef9bb 100644 --- a/reference/mysqlnd_ms/functions/mysqlnd-ms-get-last-used-connection.xml +++ b/reference/mysqlnd_ms/functions/mysqlnd-ms-get-last-used-connection.xml @@ -1,5 +1,5 @@ - + @@ -120,7 +120,7 @@ Info message obtained from the - MySQL C API function mysql_info(). Pleae, see + MySQL C API function mysql_info(). Pleae, see mysqli_info for a description. @@ -164,7 +164,7 @@ mysqlnd_ms_get_last_used_connection requires PHP >= 5.4.0 and PECL mysqlnd_ms >> 1.1.0. Internally, it is using - a mysqlnd function not available with PHP 5.3. + a mysqlnd library C call not available with PHP 5.3. @@ -213,7 +213,7 @@ object(stdClass)#4 (9) { - +