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
90ead995
Commit
90ead995
authored
Jun 10, 2014
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bzr merge -r3980..3984 codership/5.5
parent
b441c510
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
21 deletions
+27
-21
scripts/wsrep_sst_common.sh
scripts/wsrep_sst_common.sh
+5
-5
scripts/wsrep_sst_mysqldump.sh
scripts/wsrep_sst_mysqldump.sh
+9
-4
sql/wsrep_sst.cc
sql/wsrep_sst.cc
+5
-4
storage/innobase/row/row0ins.c
storage/innobase/row/row0ins.c
+4
-4
storage/xtradb/row/row0ins.c
storage/xtradb/row/row0ins.c
+4
-4
No files found.
scripts/wsrep_sst_common.sh
View file @
90ead995
...
@@ -20,6 +20,7 @@ set -u
...
@@ -20,6 +20,7 @@ set -u
WSREP_SST_OPT_BYPASS
=
0
WSREP_SST_OPT_BYPASS
=
0
WSREP_SST_OPT_DATA
=
""
WSREP_SST_OPT_DATA
=
""
WSREP_SST_OPT_AUTH
=
""
while
[
$#
-gt
0
]
;
do
while
[
$#
-gt
0
]
;
do
case
"
$1
"
in
case
"
$1
"
in
...
@@ -55,7 +56,7 @@ case "$1" in
...
@@ -55,7 +56,7 @@ case "$1" in
shift
shift
;;
;;
'--password'
)
'--password'
)
readonly
WSREP_SST_OPT_PSWD
=
"
$2
"
WSREP_SST_OPT_PSWD
=
"
$2
"
shift
shift
;;
;;
'--port'
)
'--port'
)
...
@@ -71,7 +72,7 @@ case "$1" in
...
@@ -71,7 +72,7 @@ case "$1" in
shift
shift
;;
;;
'--user'
)
'--user'
)
readonly
WSREP_SST_OPT_USER
=
"
$2
"
WSREP_SST_OPT_USER
=
"
$2
"
shift
shift
;;
;;
'--gtid'
)
'--gtid'
)
...
@@ -89,7 +90,7 @@ readonly WSREP_SST_OPT_BYPASS
...
@@ -89,7 +90,7 @@ readonly WSREP_SST_OPT_BYPASS
# For Bug:1200727
# For Bug:1200727
if
my_print_defaults
-c
$WSREP_SST_OPT_CONF
sst |
grep
-q
"wsrep_sst_auth"
;
then
if
my_print_defaults
-c
$WSREP_SST_OPT_CONF
sst |
grep
-q
"wsrep_sst_auth"
;
then
if
[
-z
$WSREP_SST_OPT_AUTH
-o
$WSREP_SST_OPT_AUTH
=
"(null)"
]
;
then
if
[
-z
"
$WSREP_SST_OPT_AUTH
"
-o
"
$WSREP_SST_OPT_AUTH
"
=
"(null)"
]
;
then
WSREP_SST_OPT_AUTH
=
$(
my_print_defaults
-c
$WSREP_SST_OPT_CONF
sst |
grep
--
"--wsrep_sst_auth"
|
cut
-d
=
-f2
)
WSREP_SST_OPT_AUTH
=
$(
my_print_defaults
-c
$WSREP_SST_OPT_CONF
sst |
grep
--
"--wsrep_sst_auth"
|
cut
-d
=
-f2
)
fi
fi
fi
fi
...
@@ -124,4 +125,3 @@ wsrep_cleanup_progress_file()
...
@@ -124,4 +125,3 @@ wsrep_cleanup_progress_file()
{
{
[
-n
"
$SST_PROGRESS_FILE
"
]
&&
rm
-f
"
$SST_PROGRESS_FILE
"
2>/dev/null
[
-n
"
$SST_PROGRESS_FILE
"
]
&&
rm
-f
"
$SST_PROGRESS_FILE
"
2>/dev/null
}
}
scripts/wsrep_sst_mysqldump.sh
View file @
90ead995
#!/bin/sh -e
#!/bin/
ba
sh -e
# Copyright (C) 2009 Codership Oy
# Copyright (C) 2009 Codership Oy
#
#
# This program is free software; you can redistribute it and/or modify
# This program is free software; you can redistribute it and/or modify
...
@@ -61,6 +61,11 @@ then
...
@@ -61,6 +61,11 @@ then
exit
$EINVAL
exit
$EINVAL
fi
fi
# For Bug:1293798
if
[
-z
"
$WSREP_SST_OPT_PSWD
"
-a
-n
"
$WSREP_SST_OPT_AUTH
"
]
;
then
WSREP_SST_OPT_USER
=
$(
echo
$WSREP_SST_OPT_AUTH
|
cut
-d
:
-f1
)
WSREP_SST_OPT_PSWD
=
$(
echo
$WSREP_SST_OPT_AUTH
|
cut
-d
:
-f2
)
fi
AUTH
=
"-u
$WSREP_SST_OPT_USER
"
AUTH
=
"-u
$WSREP_SST_OPT_USER
"
if
test
-n
"
$WSREP_SST_OPT_PSWD
"
;
then
AUTH
=
"
$AUTH
-p
$WSREP_SST_OPT_PSWD
"
;
fi
if
test
-n
"
$WSREP_SST_OPT_PSWD
"
;
then
AUTH
=
"
$AUTH
-p
$WSREP_SST_OPT_PSWD
"
;
fi
...
...
sql/wsrep_sst.cc
View file @
90ead995
...
@@ -717,10 +717,11 @@ static int sst_donate_mysqldump (const char* addr,
...
@@ -717,10 +717,11 @@ static int sst_donate_mysqldump (const char* addr,
WSREP_SST_OPT_LPORT
" '%u' "
WSREP_SST_OPT_LPORT
" '%u' "
WSREP_SST_OPT_SOCKET
" '%s' "
WSREP_SST_OPT_SOCKET
" '%s' "
WSREP_SST_OPT_DATA
" '%s' "
WSREP_SST_OPT_DATA
" '%s' "
WSREP_SST_OPT_CONF
" '%s' "
WSREP_SST_OPT_GTID
" '%s:%lld'"
WSREP_SST_OPT_GTID
" '%s:%lld'"
"%s"
,
"%s"
,
user
,
pswd
,
host
,
port
,
mysqld_port
,
mysqld_unix_port
,
user
,
pswd
,
host
,
port
,
mysqld_port
,
mysqld_unix_port
,
mysql_real_data_home
,
uuid_str
,
mysql_real_data_home
,
wsrep_defaults_file
,
uuid_str
,
(
long
long
)
seqno
,
bypass
?
" "
WSREP_SST_OPT_BYPASS
:
""
);
(
long
long
)
seqno
,
bypass
?
" "
WSREP_SST_OPT_BYPASS
:
""
);
WSREP_DEBUG
(
"Running: '%s'"
,
cmd_str
);
WSREP_DEBUG
(
"Running: '%s'"
,
cmd_str
);
...
...
storage/innobase/row/row0ins.c
View file @
90ead995
...
@@ -1696,6 +1696,10 @@ row_ins_scan_sec_index_for_duplicate(
...
@@ -1696,6 +1696,10 @@ row_ins_scan_sec_index_for_duplicate(
mem_heap_t
*
heap
=
NULL
;
mem_heap_t
*
heap
=
NULL
;
ulint
offsets_
[
REC_OFFS_NORMAL_SIZE
];
ulint
offsets_
[
REC_OFFS_NORMAL_SIZE
];
ulint
*
offsets
=
offsets_
;
ulint
*
offsets
=
offsets_
;
#ifdef WITH_WSREP
/* appliers don't need dupkey checks */
if
(
wsrep_thd_is_BF
(
thr_get_trx
(
thr
)
->
mysql_thd
,
0
))
return
(
DB_SUCCESS
);
#endif
/* WITH_WSREP */
rec_offs_init
(
offsets_
);
rec_offs_init
(
offsets_
);
n_unique
=
dict_index_get_n_unique
(
index
);
n_unique
=
dict_index_get_n_unique
(
index
);
...
@@ -1760,10 +1764,6 @@ row_ins_scan_sec_index_for_duplicate(
...
@@ -1760,10 +1764,6 @@ row_ins_scan_sec_index_for_duplicate(
lock_type
,
block
,
rec
,
index
,
offsets
,
thr
);
lock_type
,
block
,
rec
,
index
,
offsets
,
thr
);
}
else
{
}
else
{
#ifdef WITH_WSREP
/* appliers don't need dupkey checks */
if
(
!
wsrep_thd_is_BF
(
thr_get_trx
(
thr
)
->
mysql_thd
,
0
))
#endif
/* WITH_WSREP */
err
=
row_ins_set_shared_rec_lock
(
err
=
row_ins_set_shared_rec_lock
(
lock_type
,
block
,
rec
,
index
,
offsets
,
thr
);
lock_type
,
block
,
rec
,
index
,
offsets
,
thr
);
}
}
...
...
storage/xtradb/row/row0ins.c
View file @
90ead995
...
@@ -1705,6 +1705,10 @@ row_ins_scan_sec_index_for_duplicate(
...
@@ -1705,6 +1705,10 @@ row_ins_scan_sec_index_for_duplicate(
mem_heap_t
*
heap
=
NULL
;
mem_heap_t
*
heap
=
NULL
;
ulint
offsets_
[
REC_OFFS_NORMAL_SIZE
];
ulint
offsets_
[
REC_OFFS_NORMAL_SIZE
];
ulint
*
offsets
=
offsets_
;
ulint
*
offsets
=
offsets_
;
#ifdef WITH_WSREP
/* appliers don't need dupkey checks */
if
(
wsrep_thd_is_BF
(
thr_get_trx
(
thr
)
->
mysql_thd
,
0
))
return
(
DB_SUCCESS
);
#endif
/* WITH_WSREP */
rec_offs_init
(
offsets_
);
rec_offs_init
(
offsets_
);
n_unique
=
dict_index_get_n_unique
(
index
);
n_unique
=
dict_index_get_n_unique
(
index
);
...
@@ -1769,10 +1773,6 @@ row_ins_scan_sec_index_for_duplicate(
...
@@ -1769,10 +1773,6 @@ row_ins_scan_sec_index_for_duplicate(
lock_type
,
block
,
rec
,
index
,
offsets
,
thr
);
lock_type
,
block
,
rec
,
index
,
offsets
,
thr
);
}
else
{
}
else
{
#ifdef WITH_WSREP
/* appliers don't need dupkey checks */
if
(
!
wsrep_thd_is_BF
(
thr_get_trx
(
thr
)
->
mysql_thd
,
0
))
#endif
/* WITH_WSREP */
err
=
row_ins_set_shared_rec_lock
(
err
=
row_ins_set_shared_rec_lock
(
lock_type
,
block
,
rec
,
index
,
offsets
,
thr
);
lock_type
,
block
,
rec
,
index
,
offsets
,
thr
);
}
}
...
...
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