Merge lp:~vkolesnikov/pbxt/pbxt-bug-309424 into lp:pbxt

Proposed by Vladimir Kolesnikov
Status: Merged
Merged at revision: not available
Proposed branch: lp:~vkolesnikov/pbxt/pbxt-bug-309424
Merge into: lp:pbxt
Diff against target: None lines
To merge this branch: bzr merge lp:~vkolesnikov/pbxt/pbxt-bug-309424
Reviewer Review Type Date Requested Status
PBXT Core Pending
Review via email: mp+9054@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ChangeLog'
2--- ChangeLog 2009-07-13 12:15:15 +0000
3+++ ChangeLog 2009-06-30 21:16:57 +0000
4@@ -3,6 +3,8 @@
5
6 ------- 1.0.09 RC2 - Not released yet
7
8+RN259: Fixed bug #309424: xtstat doesn't use my.cnf
9+
10 RN258: updated xt_p_join implementation for Windows to check if a thread has already exited or has not yet started
11
12 RN257: Removed false assertion that could fail during restore if a transaction log page was zero-filled
13
14=== modified file 'bin/xtstat_xt.cc'
15--- bin/xtstat_xt.cc 2008-12-22 14:29:21 +0000
16+++ bin/xtstat_xt.cc 2009-06-30 21:16:57 +0000
17@@ -75,9 +75,9 @@
18 { OPT_HELP, '?', "help", 0,
19 "Prints help text", NULL, 0, false },
20 { OPT_HOST, 'h', "host", OPT_HAS_VALUE,
21- "Connect to host", "localhost", 0, false },
22+ "Connect to host", NULL, 0, false },
23 { OPT_USER, 'u', "user", OPT_HAS_VALUE,
24- "User for login if not current user", "root", 0, false },
25+ "User for login if not current user", NULL, 0, false },
26 { OPT_PASSWORD, 'p', "password", OPT_HAS_VALUE | OPT_OPTIONAL,
27 "Password to use when connecting to server. If password is not given it's asked from the tty", NULL, 0, false },
28 { OPT_DATABASE, 'd', "database", OPT_HAS_VALUE,
29@@ -85,7 +85,7 @@
30 { OPT_PORT, 'P', "port", OPT_HAS_VALUE | OPT_INTEGER,
31 "Port number to use for connection", NULL, 3306, false },
32 { OPT_SOCKET, 'S', "socket", OPT_HAS_VALUE,
33- "Socket file to use for connection", "/tmp/mysql.sock", 0, false },
34+ "Socket file to use for connection", NULL, 0, false },
35 { OPT_DELAY, 'D', "delay", OPT_HAS_VALUE | OPT_INTEGER,
36 "Delay in seconds between polls of the database", NULL, 1, false },
37 { OPT_PROTOCOL, 0, "protocol", OPT_HAS_VALUE,
38@@ -586,6 +586,9 @@
39 if (mysql_options(conn, MYSQL_OPT_PROTOCOL, (char *) &type))
40 return false;
41
42+ if (mysql_options(conn, MYSQL_READ_DEFAULT_GROUP, "xtstat"))
43+ return false;
44+
45 /* Connect to database */
46 if (!mysql_real_connect(conn,
47 options[OPT_HOST].opt_value_str,

Subscribers

People subscribed via source and target branches