Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
b7de8a0b
Commit
b7de8a0b
authored
Nov 25, 2003
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change to use real_sleep to make test work in build environment
parent
19845c6b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
10 deletions
+6
-10
myisam/mi_extra.c
myisam/mi_extra.c
+3
-7
mysql-test/r/rpl_change_master.result
mysql-test/r/rpl_change_master.result
+1
-1
mysql-test/t/rpl_change_master.test
mysql-test/t/rpl_change_master.test
+2
-2
No files found.
myisam/mi_extra.c
View file @
b7de8a0b
...
@@ -33,15 +33,11 @@
...
@@ -33,15 +33,11 @@
Used when function is one of:
Used when function is one of:
HA_EXTRA_WRITE_CACHE
HA_EXTRA_WRITE_CACHE
HA_EXTRA_CACHE
HA_EXTRA_CACHE
HA_EXTRA_BULK_INSERT_BEGIN
If extra_arg is 0, then the default cache size is used.
HA_EXTRA_BULK_INSERT_FLUSH
extra_arg is a a pointer to which index to flush (uint*)
RETURN VALUES
RETURN VALUES
0 ok
0 ok
# error
*/
*/
int
mi_extra
(
MI_INFO
*
info
,
enum
ha_extra_function
function
,
void
*
extra_arg
)
int
mi_extra
(
MI_INFO
*
info
,
enum
ha_extra_function
function
,
void
*
extra_arg
)
{
{
int
error
=
0
;
int
error
=
0
;
...
...
mysql-test/r/rpl_change_master.result
View file @
b7de8a0b
...
@@ -8,7 +8,7 @@ select get_lock("a",5);
...
@@ -8,7 +8,7 @@ select get_lock("a",5);
get_lock("a",5)
get_lock("a",5)
1
1
create table t1(n int);
create table t1(n int);
insert into t1 values(1+get_lock("a",1
0
)*0);
insert into t1 values(1+get_lock("a",1
5
)*0);
insert into t1 values(2);
insert into t1 values(2);
stop slave;
stop slave;
select * from t1;
select * from t1;
...
...
mysql-test/t/rpl_change_master.test
View file @
b7de8a0b
...
@@ -4,11 +4,11 @@ connection slave;
...
@@ -4,11 +4,11 @@ connection slave;
select
get_lock
(
"a"
,
5
);
select
get_lock
(
"a"
,
5
);
connection
master
;
connection
master
;
create
table
t1
(
n
int
);
create
table
t1
(
n
int
);
insert
into
t1
values
(
1
+
get_lock
(
"a"
,
1
0
)
*
0
);
insert
into
t1
values
(
1
+
get_lock
(
"a"
,
1
5
)
*
0
);
insert
into
t1
values
(
2
);
insert
into
t1
values
(
2
);
save_master_pos
;
save_master_pos
;
connection
slave
;
connection
slave
;
sleep
3
;
# can't sync_with_master as we should be blocked
--
real_
sleep
3
;
# can't sync_with_master as we should be blocked
stop
slave
;
stop
slave
;
select
*
from
t1
;
select
*
from
t1
;
--
replace_result
$MASTER_MYPORT
MASTER_MYPORT
--
replace_result
$MASTER_MYPORT
MASTER_MYPORT
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment