Commit 48e83ba6 authored by Nirbhay Choubey's avatar Nirbhay Choubey

* Updated auto_increment_xxx_func.result to reflect the changes

made by https://bugs.launchpad.net/codership-mysql/+bug/587170

* Fix for some compiler errors/warnings.
parent e1ed3dce
......@@ -142,8 +142,8 @@ id name
116 Record_10
117 Record_11
119 Record_12
121 Record_13
123 Record_14
120 Record_13
121 Record_14
## Changing column's datatype to BigInt and verifying variable's behavior ##
ALTER table t1 MODIFY id BIGINT NOT NULL auto_increment;
INSERT into t1(name) values('Record_15');
......@@ -159,10 +159,10 @@ id name
116 Record_10
117 Record_11
119 Record_12
121 Record_13
123 Record_14
125 Record_15
127 Record_16
120 Record_13
121 Record_14
122 Record_15
123 Record_16
'#--------------------FN_DYNVARS_001_07-------------------------#'
## Verifying behavior of variable with negative value ##
SET @@auto_increment_increment = -10;
......@@ -181,12 +181,12 @@ id name
116 Record_10
117 Record_11
119 Record_12
121 Record_13
123 Record_14
125 Record_15
127 Record_16
128 Record_17
129 Record_18
120 Record_13
121 Record_14
122 Record_15
123 Record_16
124 Record_17
125 Record_18
## Disconnecting test_con2 ##
## Dropping table t1 ##
DROP table if exists t1;
......
......@@ -144,8 +144,8 @@ id name
125 Record_12
134 Record_13
140 Record_14
150 Record_15
160 Record_16
141 Record_15
142 Record_16
## Changing datatype of column id with primary key to BigInt ##
ALTER table t1 modify id BIGINT NOT NULL auto_increment;
INSERT into t1(name) values('Record_17');
......@@ -166,10 +166,10 @@ id name
125 Record_12
134 Record_13
140 Record_14
150 Record_15
160 Record_16
170 Record_17
180 Record_18
141 Record_15
142 Record_16
143 Record_17
144 Record_18
'#--------------------FN_DYNVARS_002_07-------------------------#'
## Assigning -ve value to variable ##
SET @@auto_increment_offset = -10;
......@@ -196,12 +196,12 @@ id name
125 Record_12
134 Record_13
140 Record_14
150 Record_15
160 Record_16
170 Record_17
180 Record_18
181 Record_17
191 Record_18
141 Record_15
142 Record_16
143 Record_17
144 Record_18
145 Record_17
146 Record_18
## Assigning value that is out of range of variable ##
SET @@auto_increment_offset = 65536;
Warnings:
......@@ -229,16 +229,16 @@ id name
125 Record_12
134 Record_13
140 Record_14
150 Record_15
160 Record_16
170 Record_17
180 Record_18
181 Record_17
191 Record_18
199 Record_17
209 Record_18
219 Record_19
229 Record_20
141 Record_15
142 Record_16
143 Record_17
144 Record_18
145 Record_17
146 Record_18
147 Record_17
148 Record_18
149 Record_19
150 Record_20
## No effect of auto_increment_offset since value of this variable is greater ##
## than auto_increment_increment ##
## Dropping table ##
......
......@@ -150,4 +150,5 @@ static int my_win_unlink(const char *name)
my_osmaperr(last_error);
DBUG_RETURN(-1);
}
#endif
\ No newline at end of file
#endif
......@@ -4464,8 +4464,10 @@ will be ignored as the --log-bin option is not defined.");
if (wsrep_before_SE())
{
#ifndef EMBEDDED_LIBRARY
set_ports(); // this is also called in network_init() later but we need
// to know mysqld_port now - lp:1071882
#endif /* !EMBEDDED_LIBRARY */
wsrep_init_startup(true);
}
}
......
......@@ -8193,7 +8193,7 @@ void wsrep_write_rbr_buf(
FILE *of= fopen(filename, "wb");
if (of)
{
fwrite (rbr_buf, buf_len, 1, of);
(void) fwrite (rbr_buf, buf_len, 1, of);
fclose(of);
}
else
......
......@@ -285,7 +285,7 @@ extern wsrep_seqno_t wsrep_locked_seqno;
WSREP_LOG(sql_print_information, "cluster conflict due to %s for threads:",\
(bf_abort) ? "high priority abort" : "certification failure" \
); \
if (bf_thd) WSREP_LOG_CONFLICT_THD(bf_thd, "Winning thread"); \
if (bf_thd != NULL) WSREP_LOG_CONFLICT_THD(bf_thd, "Winning thread"); \
if (victim_thd) WSREP_LOG_CONFLICT_THD(victim_thd, "Victim thread"); \
}
......
......@@ -554,7 +554,7 @@ ut_print_namel(
trx ? trx->mysql_thd : NULL,
table_id);
fwrite(buf, 1, bufend - buf, f);
(void) fwrite(buf, 1, bufend - buf, f);
}
/**********************************************************************//**
......@@ -575,7 +575,7 @@ ut_copy_file(
? (size_t) len
: sizeof buf;
size_t size = fread(buf, 1, maxs, src);
fwrite(buf, 1, size, dest);
(void) fwrite(buf, 1, size, dest);
len -= (long) size;
if (size < maxs) {
break;
......
......@@ -2537,7 +2537,9 @@ buf_page_get_gen(
rw_lock_s_unlock(&buf_pool->page_hash_latch);
}
#if defined UNIV_DEBUG || defined UNIV_IBUF_DEBUG
loop2:
#endif /* UNIV_DEBUG || UNIV_IBUF_DEBUG */
if (block && buf_pool_watch_is_sentinel(buf_pool, &block->page)) {
mutex_exit(block_mutex);
block = NULL;
......
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