Merge work:/home/bk/mysql
into mysql.sashanet.com:/home/sasha/src/bk/mysql BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
This commit is contained in:
commit
14dba1af96
@ -2,3 +2,4 @@ jani@janikt.pp.saunalahti.fi
|
|||||||
monty@hundin.mysql.fi
|
monty@hundin.mysql.fi
|
||||||
mwagner@evoq.mwagner.org
|
mwagner@evoq.mwagner.org
|
||||||
heikki@donna.mysql.fi
|
heikki@donna.mysql.fi
|
||||||
|
sasha@mysql.sashanet.com
|
||||||
|
@ -916,9 +916,10 @@ static int exec_event(THD* thd, NET* net, MASTER_INFO* mi, int event_len)
|
|||||||
(actual_error = thd->net.last_errno) && expected_error)
|
(actual_error = thd->net.last_errno) && expected_error)
|
||||||
{
|
{
|
||||||
const char* errmsg = "Slave: did not get the expected error\
|
const char* errmsg = "Slave: did not get the expected error\
|
||||||
running query from master - expected: '%s', got '%s'";
|
running query from master - expected: '%s'(%d), got '%s'(%d)";
|
||||||
sql_print_error(errmsg, ER(expected_error),
|
sql_print_error(errmsg, ER(expected_error), expected_error,
|
||||||
actual_error ? thd->net.last_error:"no error"
|
actual_error ? thd->net.last_error:"no error",
|
||||||
|
actual_error
|
||||||
);
|
);
|
||||||
thd->query_error = 1;
|
thd->query_error = 1;
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,8 @@
|
|||||||
#define SHAREDIR "share/"
|
#define SHAREDIR "share/"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ER(X) errmesg[(X)-1000]
|
#define ER(X) ((X) >= 1000 && (X) < ER_ERROR_MESSAGES + 1000) ? \
|
||||||
|
errmesg[(X)-1000] : "Invalid error code"
|
||||||
|
|
||||||
#define ERRMAPP 1 /* Errormap f|r my_error */
|
#define ERRMAPP 1 /* Errormap f|r my_error */
|
||||||
#define LIBLEN FN_REFLEN-FN_LEN /* Max l{ngd p} dev */
|
#define LIBLEN FN_REFLEN-FN_LEN /* Max l{ngd p} dev */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user