Commit b09f1f9e authored by Nirbhay Choubey's avatar Nirbhay Choubey

bzr merge -r4011..4013 codership-mysql/5.5

parent 4788577c
...@@ -3339,8 +3339,7 @@ case SQLCOM_PREPARE: ...@@ -3339,8 +3339,7 @@ case SQLCOM_PREPARE:
if ((res= insert_precheck(thd, all_tables))) if ((res= insert_precheck(thd, all_tables)))
break; break;
#ifdef WITH_WSREP #ifdef WITH_WSREP
if (lex->sql_command == SQLCOM_INSERT_SELECT && if (thd->wsrep_consistency_check == CONSISTENCY_CHECK_DECLARED)
thd->wsrep_consistency_check == CONSISTENCY_CHECK_DECLARED)
{ {
thd->wsrep_consistency_check = CONSISTENCY_CHECK_RUNNING; thd->wsrep_consistency_check = CONSISTENCY_CHECK_RUNNING;
WSREP_TO_ISOLATION_BEGIN(first_table->db, first_table->table_name, NULL); WSREP_TO_ISOLATION_BEGIN(first_table->db, first_table->table_name, NULL);
......
...@@ -776,10 +776,10 @@ void wsrep_filter_new_cluster (int* argc, char* argv[]) ...@@ -776,10 +776,10 @@ void wsrep_filter_new_cluster (int* argc, char* argv[])
{ {
/* make a copy of the argument to convert possible underscores to hyphens. /* make a copy of the argument to convert possible underscores to hyphens.
* the copy need not to be longer than WSREP_NEW_CLUSTER option */ * the copy need not to be longer than WSREP_NEW_CLUSTER option */
char arg[sizeof(WSREP_NEW_CLUSTER) + 2]= { 0, }; char arg[sizeof(WSREP_NEW_CLUSTER) + 1]= { 0, };
strncpy(arg, argv[i], sizeof(arg) - 1); strncpy(arg, argv[i], sizeof(arg) - 1);
char* underscore; char* underscore(arg);
while (NULL != (underscore= strchr(arg, '_'))) *underscore= '-'; while (NULL != (underscore= strchr(underscore, '_'))) *underscore= '-';
if (!strcmp(arg, WSREP_NEW_CLUSTER)) if (!strcmp(arg, WSREP_NEW_CLUSTER))
{ {
...@@ -886,7 +886,7 @@ wsrep_causal_wait (THD* thd) ...@@ -886,7 +886,7 @@ wsrep_causal_wait (THD* thd)
switch (ret) switch (ret)
{ {
case WSREP_NOT_IMPLEMENTED: case WSREP_NOT_IMPLEMENTED:
msg= "consistent reads by wsrep backend. " msg= "synchronous reads by wsrep backend. "
"Please unset wsrep_causal_reads variable."; "Please unset wsrep_causal_reads variable.";
err= ER_NOT_SUPPORTED_YET; err= ER_NOT_SUPPORTED_YET;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment