"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "scripts/mysqlrplsync.py" between
mysql-utilities-1.6.4.tar.gz and mysql-utilities-1.6.5.tar.gz

About: MySQL Utilities is a package of utilities that are used for maintenance and administration of MySQL servers (written in Python).

mysqlrplsync.py  (mysql-utilities-1.6.4):mysqlrplsync.py  (mysql-utilities-1.6.5)
skipping to change at line 25 skipping to change at line 25
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# #
""" """
This file contains the replication synchronization checker utility. It is used This file contains the replication synchronization checker utility. It is used
to check the data consistency between master and slaves (and synchronize the to check the data consistency between master and slaves (and synchronize the
data if requested by the user). data if requested by the user).
""" """
from mysql.utilities.common.tools import check_python_version
# Check Python version compatibility
check_python_version()
import os import os
import sys import sys
from mysql.utilities.common.tools import check_python_version
from mysql.utilities.command.rpl_sync_check import check_data_consistency from mysql.utilities.command.rpl_sync_check import check_data_consistency
from mysql.utilities.common.messages import ( from mysql.utilities.common.messages import (
ERROR_MASTER_IN_SLAVES, PARSE_ERR_OPT_REQ_OPT, ERROR_MASTER_IN_SLAVES, PARSE_ERR_OPT_REQ_OPT,
PARSE_ERR_OPT_REQ_NON_NEGATIVE_VALUE, PARSE_ERR_OPT_REQ_GREATER_VALUE, PARSE_ERR_OPT_REQ_NON_NEGATIVE_VALUE, PARSE_ERR_OPT_REQ_GREATER_VALUE,
PARSE_ERR_OPT_REQ_VALUE, PARSE_ERR_OPTS_EXCLD, PARSE_ERR_OPT_REQ_VALUE, PARSE_ERR_OPTS_EXCLD,
PARSE_ERR_SLAVE_DISCO_REQ PARSE_ERR_SLAVE_DISCO_REQ
) )
from mysql.utilities.common.options import (add_discover_slaves_option, from mysql.utilities.common.options import (add_discover_slaves_option,
add_master_option, add_master_option,
add_slaves_option, add_slaves_option,
skipping to change at line 54 skipping to change at line 50
check_server_lists, check_server_lists,
db_objects_list_to_dictionary, db_objects_list_to_dictionary,
setup_common_options, setup_common_options,
check_password_security) check_password_security)
from mysql.utilities.common.server import (check_hostname_alias, from mysql.utilities.common.server import (check_hostname_alias,
connect_servers, Server) connect_servers, Server)
from mysql.utilities.common.tools import check_connector_python from mysql.utilities.common.tools import check_connector_python
from mysql.utilities.common.topology import parse_topology_connections from mysql.utilities.common.topology import parse_topology_connections
from mysql.utilities.exception import UtilError, UtilRplError from mysql.utilities.exception import UtilError, UtilRplError
# Check Python version compatibility
check_python_version()
# Check for connector/python # Check for connector/python
if not check_connector_python(): if not check_connector_python():
sys.exit(1) sys.exit(1)
# Constants # Constants
NAME = "MySQL Utilities - mysqlrplsync" NAME = "MySQL Utilities - mysqlrplsync"
DESCRIPTION = "mysqlrplsync - replication synchronization checker utility" DESCRIPTION = "mysqlrplsync - replication synchronization checker utility"
USAGE = ("%prog --master=user:pass@host:port --slaves=user:pass@host:port \\\n" USAGE = ("%prog --master=user:pass@host:port --slaves=user:pass@host:port \\\n"
" [<db_name>[.<tbl_name>]]") " [<db_name>[.<tbl_name>]]")
EXTENDED_HELP = """ EXTENDED_HELP = """
skipping to change at line 150 skipping to change at line 149
# Add the --master option. # Add the --master option.
add_master_option(parser) add_master_option(parser)
# Add the --slaves option. # Add the --slaves option.
add_slaves_option(parser) add_slaves_option(parser)
# Add the --ssl options # Add the --ssl options
add_ssl_options(parser) add_ssl_options(parser)
# Add verbosity option (no --quite option). # Add verbose option (no --quiet option).
add_verbosity(parser, False) add_verbosity(parser, False)
# Add timeout options. # Add timeout options.
parser.add_option("--rpl-timeout", action="store", dest="rpl_timeout", parser.add_option("--rpl-timeout", action="store", dest="rpl_timeout",
type="int", default=300, type="int", default=300,
help="maximum timeout in seconds to wait for " help="maximum timeout in seconds to wait for "
"synchronization (slave waiting to catch up to " "synchronization (slave waiting to catch up to "
"master). Default = 300.") "master). Default = 300.")
parser.add_option("--checksum-timeout", action="store", parser.add_option("--checksum-timeout", action="store",
dest="checksum_timeout", type="int", default=5, dest="checksum_timeout", type="int", default=5,
 End of changes. 4 change blocks. 
6 lines changed or deleted 5 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS