Oracle 5.0 Reference Manual page 2635

Table of Contents

Advertisement

Mysqlnd replication and load balancing plugin (mysqlnd_ms)
}
The callback is supposed to return a host to run the query on. The
host URI is to be taken from the master and slave connection lists
passed to the callback function. If callback returns a value neither
found in the master nor in the slave connection lists the plugin
will emit an error of the type
may read like
returned an unknown server. The server 'server
that is not in master or slave list' can neither
be found in the master list nor in the slave
If the application catches the error to ignore it, follow up errors may
be set on the connection handle, for example,
connection selected by the last filter
code
emitted.
Referencing a non-existing function as a callback will result in
any error of the type
plugin tries to callback function. The error message may reads
like:
is not a valid
error to ignore it, follow up errors may be set on the connection
handle, for example,
(pick_server) is not a valid callback
code
emitted.
The following parameters are passed from the plugin to the callback.
Parameter
connected_host
queryQuery string of the statement for which a
masters
slaves
last_used_connection
in_transaction
}
}
}
(mysqlnd_ms) User filter callback has
and the sqlstate HY000. Furthermore a warning may be
2000
E_RECOVERABLE_ERROR
(mysqlnd_ms) Specified callback (pick_server)
callback. If the application catches the
(mysqlnd_ms) Specified callback
and the sqlstate HY000. Furthermore a warning may be
2000
Description
URI of the currently connected database
server.
server needs to be picked.
List of master servers to choose from. Note,
that the list of master servers may not be
identical to the list of configured master
servers if the filter is not the first in the filter
chain. Previously run filters may have reduced
the master list already.
L ist of slave servers to choose from. Note, that
the list of master servers may not be identical
to the list of configured master servers if
the filter is not the first in the filter chain.
Previously run filters may have reduced the
master list already.
URI of the server of the connection used to
execute the previous statement on.
Boolean flag indicating whether the statement
is part of an open transaction. If autocommit
2615
E_RECOVERABLE_ERROR
(mysqlnd_ms) No
whenever the
with the error
The error
list.
with the error
Version
Since 1.1.0.
Since 1.1.0.
Since 1.1.0.
Since 1.1.0.
Since 1.1.0.
Since 1.1.0.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents