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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
be71f3cc
Commit
be71f3cc
authored
Dec 16, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed after-merge problems.
parent
dd3bba09
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
24 deletions
+26
-24
include/my_base.h
include/my_base.h
+1
-1
include/myisam.h
include/myisam.h
+1
-1
mysys/my_getopt.c
mysys/my_getopt.c
+11
-10
storage/maria/ma_ft_boolean_search.c
storage/maria/ma_ft_boolean_search.c
+2
-2
storage/maria/ma_ft_nlq_search.c
storage/maria/ma_ft_nlq_search.c
+2
-1
storage/maria/ma_sort.c
storage/maria/ma_sort.c
+6
-6
storage/myisam/mi_check.c
storage/myisam/mi_check.c
+3
-3
No files found.
include/my_base.h
View file @
be71f3cc
...
...
@@ -193,7 +193,7 @@ enum ha_extra_function {
begin and end of a statement.
*/
HA_EXTRA_ATTACH_CHILDREN
,
HA_EXTRA_DETACH_CHILDREN
HA_EXTRA_DETACH_CHILDREN
,
/* Inform handler that we will do a rename */
HA_EXTRA_PREPARE_FOR_RENAME
};
...
...
include/myisam.h
View file @
be71f3cc
...
...
@@ -341,7 +341,7 @@ typedef struct st_mi_sort_param
uchar
*
rec_buff
;
void
*
wordlist
,
*
wordptr
;
MEM_ROOT
wordroot
;
char
*
record
;
u
char
*
record
;
MY_TMPDIR
*
tmpdir
;
/*
...
...
mysys/my_getopt.c
View file @
be71f3cc
...
...
@@ -30,7 +30,6 @@ my_error_reporter my_getopt_error_reporter= &default_reporter;
static
int
findopt
(
char
*
,
uint
,
const
struct
my_option
**
,
char
**
);
my_bool
getopt_compare_strings
(
const
char
*
,
const
char
*
,
uint
);
static
longlong
getopt_ll
(
char
*
arg
,
const
struct
my_option
*
optp
,
int
*
err
);
static
longlong
getopt_ll_limit_value
(
longlong
,
const
struct
my_option
*
);
static
ulonglong
getopt_ull
(
char
*
,
const
struct
my_option
*
,
int
*
);
static
double
getopt_double
(
char
*
arg
,
const
struct
my_option
*
optp
,
int
*
err
);
static
void
init_variables
(
const
struct
my_option
*
options
,
...
...
@@ -789,8 +788,8 @@ static longlong getopt_ll(char *arg, const struct my_option *optp, int *err)
Returns "fixed" value.
*/
static
longlong
getopt_ll_limit_value
(
longlong
num
,
const
struct
my_option
*
optp
,
bool
*
fix
)
longlong
getopt_ll_limit_value
(
longlong
num
,
const
struct
my_option
*
optp
,
bool
*
fix
)
{
longlong
old
=
num
;
bool
adjusted
=
FALSE
;
...
...
@@ -859,7 +858,7 @@ static ulonglong getopt_ull(char *arg, const struct my_option *optp, int *err)
ulonglong
getopt_ull_limit_value
(
ulonglong
num
,
const
struct
my_option
*
optp
,
bool
*
fix
)
;
bool
*
fix
)
{
bool
adjusted
=
FALSE
;
ulonglong
old
=
num
;
...
...
@@ -965,25 +964,27 @@ static void init_one_value(const struct my_option *optp, uchar* *variable,
*
((
my_bool
*
)
variable
)
=
(
my_bool
)
value
;
break
;
case
GET_INT
:
*
((
int
*
)
variable
)
=
(
int
)
getopt_ll_limit_value
(
value
,
optp
);
*
((
int
*
)
variable
)
=
(
int
)
getopt_ll_limit_value
(
value
,
optp
,
NULL
);
break
;
case
GET_UINT
:
*
((
uint
*
)
variable
)
=
(
uint
)
getopt_ull_limit_value
(
value
,
optp
);
*
((
uint
*
)
variable
)
=
(
uint
)
getopt_ull_limit_value
(
value
,
optp
,
NULL
);
break
;
case
GET_ENUM
:
*
((
uint
*
)
variable
)
=
(
uint
)
value
;
break
;
case
GET_LONG
:
*
((
long
*
)
variable
)
=
(
long
)
getopt_ll_limit_value
(
value
,
optp
);
*
((
long
*
)
variable
)
=
(
long
)
getopt_ll_limit_value
(
value
,
optp
,
NULL
);
break
;
case
GET_ULONG
:
*
((
ulong
*
)
variable
)
=
(
ulong
)
getopt_ull_limit_value
(
value
,
optp
);
*
((
ulong
*
)
variable
)
=
(
ulong
)
getopt_ull_limit_value
(
value
,
optp
,
NULL
);
break
;
case
GET_LL
:
*
((
longlong
*
)
variable
)
=
(
longlong
)
getopt_ll_limit_value
(
value
,
optp
);
*
((
longlong
*
)
variable
)
=
(
longlong
)
getopt_ll_limit_value
(
value
,
optp
,
NULL
);
break
;
case
GET_ULL
:
*
((
ulonglong
*
)
variable
)
=
(
ulonglong
)
getopt_ull_limit_value
(
value
,
optp
);
*
((
ulonglong
*
)
variable
)
=
(
ulonglong
)
getopt_ull_limit_value
(
value
,
optp
,
NULL
);
break
;
case
GET_SET
:
*
((
ulonglong
*
)
variable
)
=
(
ulonglong
)
value
;
...
...
storage/maria/ma_ft_boolean_search.c
View file @
be71f3cc
...
...
@@ -555,8 +555,8 @@ FT_INFO * maria_ft_init_boolean_search(MARIA_HA *info, uint keynr, uchar *query,
ftb
->
list
=
(
FTB_WORD
**
)
alloc_root
(
&
ftb
->
mem_root
,
sizeof
(
FTB_WORD
*
)
*
ftb
->
queue
.
elements
);
memcpy
(
ftb
->
list
,
ftb
->
queue
.
root
+
1
,
sizeof
(
FTB_WORD
*
)
*
ftb
->
queue
.
elements
);
qsort2
(
ftb
->
list
,
ftb
->
queue
.
elements
,
sizeof
(
FTB_WORD
*
),
(
qsort2_cmp
)
FTB_WORD_cmp_list
,
ftb
->
charset
);
my_
qsort2
(
ftb
->
list
,
ftb
->
queue
.
elements
,
sizeof
(
FTB_WORD
*
),
(
qsort2_cmp
)
FTB_WORD_cmp_list
,
ftb
->
charset
);
if
(
ftb
->
queue
.
elements
<
2
)
ftb
->
with_scan
&=
~
FTB_FLAG_TRUNC
;
ftb
->
state
=
READY
;
return
ftb
;
...
...
storage/maria/ma_ft_nlq_search.c
View file @
be71f3cc
...
...
@@ -295,7 +295,8 @@ FT_INFO *maria_ft_init_nlq_search(MARIA_HA *info, uint keynr, uchar *query,
&
dptr
,
left_root_right
);
if
(
flags
&
FT_SORTED
)
qsort2
(
dlist
->
doc
,
dlist
->
ndocs
,
sizeof
(
FT_DOC
),
(
qsort2_cmp
)
&
FT_DOC_cmp
,
0
);
my_qsort2
(
dlist
->
doc
,
dlist
->
ndocs
,
sizeof
(
FT_DOC
),
(
qsort2_cmp
)
&
FT_DOC_cmp
,
0
);
err:
delete_tree
(
&
aio
.
dtree
);
...
...
storage/maria/ma_sort.c
View file @
be71f3cc
...
...
@@ -653,8 +653,8 @@ static int write_keys(MARIA_SORT_PARAM *info, register uchar **sort_keys,
uint
sort_length
=
info
->
key_length
;
DBUG_ENTER
(
"write_keys"
);
qsort2
((
uchar
*
)
sort_keys
,
count
,
sizeof
(
uchar
*
),(
qsort2_cmp
)
info
->
key_cmp
,
info
);
my_
qsort2
((
uchar
*
)
sort_keys
,
count
,
sizeof
(
uchar
*
),(
qsort2_cmp
)
info
->
key_cmp
,
info
);
if
(
!
my_b_inited
(
tempfile
)
&&
open_cached_file
(
tempfile
,
my_tmpdir
(
info
->
tmpdir
),
"ST"
,
DISK_BUFFER_SIZE
,
info
->
sort_info
->
param
->
myf_rw
))
...
...
@@ -696,8 +696,8 @@ static int write_keys_varlen(MARIA_SORT_PARAM *info,
int
err
;
DBUG_ENTER
(
"write_keys_varlen"
);
qsort2
((
uchar
*
)
sort_keys
,
count
,
sizeof
(
uchar
*
),(
qsort2_cmp
)
info
->
key_cmp
,
info
);
my_
qsort2
((
uchar
*
)
sort_keys
,
count
,
sizeof
(
uchar
*
),(
qsort2_cmp
)
info
->
key_cmp
,
info
);
if
(
!
my_b_inited
(
tempfile
)
&&
open_cached_file
(
tempfile
,
my_tmpdir
(
info
->
tmpdir
),
"ST"
,
DISK_BUFFER_SIZE
,
info
->
sort_info
->
param
->
myf_rw
))
...
...
@@ -740,8 +740,8 @@ static int write_index(MARIA_SORT_PARAM *info,
{
DBUG_ENTER
(
"write_index"
);
qsort2
((
uchar
*
)
sort_keys
,(
size_t
)
count
,
sizeof
(
uchar
*
),
(
qsort2_cmp
)
info
->
key_cmp
,
info
);
my_
qsort2
((
uchar
*
)
sort_keys
,(
size_t
)
count
,
sizeof
(
uchar
*
),
(
qsort2_cmp
)
info
->
key_cmp
,
info
);
while
(
count
--
)
{
if
((
*
info
->
key_write
)(
info
,
*
sort_keys
++
))
...
...
storage/myisam/mi_check.c
View file @
be71f3cc
...
...
@@ -1429,7 +1429,7 @@ int chk_data_link(HA_CHECK *param, MI_INFO *info,int extend)
then recrate all indexes.
*/
static
int
mi_drop_all_indexes
(
MI
_CHECK
*
param
,
MI_INFO
*
info
,
my_bool
force
)
static
int
mi_drop_all_indexes
(
HA
_CHECK
*
param
,
MI_INFO
*
info
,
my_bool
force
)
{
MYISAM_SHARE
*
share
=
info
->
s
;
MI_STATE_INFO
*
state
=
&
share
->
state
;
...
...
@@ -2671,14 +2671,14 @@ int mi_repair_parallel(HA_CHECK *param, register MI_INFO *info,
/*
Quick repair (not touching data file, rebuilding indexes):
{
Read cache is (
MI
_CHECK *param)->read_cache using info->dfile.
Read cache is (
HA
_CHECK *param)->read_cache using info->dfile.
}
Non-quick repair (rebuilding data file and indexes):
{
Master thread:
Read cache is (
MI
_CHECK *param)->read_cache using info->dfile.
Read cache is (
HA
_CHECK *param)->read_cache using info->dfile.
Write cache is (MI_INFO *info)->rec_cache using new_file.
Slave threads:
...
...
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