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
f811aa44
Commit
f811aa44
authored
Aug 21, 2001
by
tim@white.box
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
afd8a6db
c8e07826
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
8 deletions
+17
-8
client/mysqlbinlog.cc
client/mysqlbinlog.cc
+1
-0
client/mysqltest.c
client/mysqltest.c
+4
-4
client/thread_test.c
client/thread_test.c
+1
-1
include/my_pthread.h
include/my_pthread.h
+9
-0
myisam/myisamchk.c
myisam/myisamchk.c
+2
-3
No files found.
client/mysqlbinlog.cc
View file @
f811aa44
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
#include <m_string.h>
#include <m_string.h>
#include <my_sys.h>
#include <my_sys.h>
#include <getopt.h>
#include <getopt.h>
#include <my_pthread.h>
#include <thr_alarm.h>
#include <thr_alarm.h>
#include <mysql.h>
#include <mysql.h>
#include "log_event.h"
#include "log_event.h"
...
...
client/mysqltest.c
View file @
f811aa44
...
@@ -251,10 +251,10 @@ static int eval_result = 0;
...
@@ -251,10 +251,10 @@ static int eval_result = 0;
/* Disable functions that only exist in MySQL 4.0 */
/* Disable functions that only exist in MySQL 4.0 */
#if MYSQL_VERSION_ID < 40000
#if MYSQL_VERSION_ID < 40000
static
void
mysql_enable_rpl_parse
(
MYSQL
*
mysql
)
{}
static
void
mysql_enable_rpl_parse
(
MYSQL
*
mysql
__attribute__
((
unused
))
)
{}
static
void
mysql_disable_rpl_parse
(
MYSQL
*
mysql
)
{}
static
void
mysql_disable_rpl_parse
(
MYSQL
*
mysql
__attribute__
((
unused
))
)
{}
static
int
mysql_rpl_parse_enabled
(
MYSQL
*
mysql
)
{
return
1
;
}
static
int
mysql_rpl_parse_enabled
(
MYSQL
*
mysql
__attribute__
((
unused
))
)
{
return
1
;
}
static
int
mysql_rpl_probe
(
MYSQL
*
mysql
)
{
return
1
;
}
static
int
mysql_rpl_probe
(
MYSQL
*
mysql
__attribute__
((
unused
))
)
{
return
1
;
}
#endif
#endif
...
...
client/thread_test.c
View file @
f811aa44
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#ifndef THREAD
#ifndef THREAD
int
main
(
int
argc
,
char
**
argv
)
int
main
(
void
)
{
{
printf
(
"This test must be compiled with multithread support to work
\n
"
);
printf
(
"This test must be compiled with multithread support to work
\n
"
);
exit
(
1
);
exit
(
1
);
...
...
include/my_pthread.h
View file @
f811aa44
...
@@ -20,6 +20,10 @@
...
@@ -20,6 +20,10 @@
#ifndef _my_pthread_h
#ifndef _my_pthread_h
#define _my_pthread_h
#define _my_pthread_h
#ifdef __cplusplus
extern
"C"
{
#endif
#include <errno.h>
#include <errno.h>
#ifndef ETIME
#ifndef ETIME
#define ETIME ETIMEDOUT
/* For FreeBSD */
#define ETIME ETIMEDOUT
/* For FreeBSD */
...
@@ -612,4 +616,9 @@ extern struct st_my_thread_var *_my_thread_var(void) __attribute__ ((const));
...
@@ -612,4 +616,9 @@ extern struct st_my_thread_var *_my_thread_var(void) __attribute__ ((const));
#endif
/* SAFE_STATISTICS */
#endif
/* SAFE_STATISTICS */
#endif
/* HAVE_ATOMIC_ADD */
#endif
/* HAVE_ATOMIC_ADD */
#endif
/* thread_safe_increment */
#endif
/* thread_safe_increment */
#ifdef __cplusplus
}
#endif
#endif
/* _my_ptread_h */
#endif
/* _my_ptread_h */
myisam/myisamchk.c
View file @
f811aa44
...
@@ -39,7 +39,6 @@ static uint decode_bits;
...
@@ -39,7 +39,6 @@ static uint decode_bits;
static
char
**
default_argv
;
static
char
**
default_argv
;
static
const
char
*
load_default_groups
[]
=
{
"myisamchk"
,
0
};
static
const
char
*
load_default_groups
[]
=
{
"myisamchk"
,
0
};
static
const
char
*
set_charset_name
;
static
const
char
*
set_charset_name
;
static
uint8
set_charset_number
;
static
CHARSET_INFO
*
set_charset
;
static
CHARSET_INFO
*
set_charset
;
static
const
char
*
type_names
[]
=
static
const
char
*
type_names
[]
=
...
@@ -607,9 +606,9 @@ static int myisamchk(MI_CHECK *param, my_string filename)
...
@@ -607,9 +606,9 @@ static int myisamchk(MI_CHECK *param, my_string filename)
(((
ulonglong
)
1L
<<
share
->
base
.
keys
)
-
1
))
||
(((
ulonglong
)
1L
<<
share
->
base
.
keys
)
-
1
))
||
test_if_almost_full
(
info
)
||
test_if_almost_full
(
info
)
||
info
->
s
->
state
.
header
.
file_version
[
3
]
!=
myisam_file_magic
[
3
]
||
info
->
s
->
state
.
header
.
file_version
[
3
]
!=
myisam_file_magic
[
3
]
||
(
set_charset
&&
set_charset
_
number
!=
share
->
state
.
header
.
language
)))
(
set_charset
&&
set_charset
->
number
!=
share
->
state
.
header
.
language
)))
{
{
check_param
.
language
=
set_charset
_
number
;
check_param
.
language
=
set_charset
->
number
;
if
(
recreate_table
(
&
check_param
,
&
info
,
filename
))
if
(
recreate_table
(
&
check_param
,
&
info
,
filename
))
{
{
VOID
(
fprintf
(
stderr
,
VOID
(
fprintf
(
stderr
,
...
...
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