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
34c3484f
Commit
34c3484f
authored
Sep 30, 2001
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes to get openssl code to compile
parent
d22bf7e3
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
166 additions
and
181 deletions
+166
-181
include/violite.h
include/violite.h
+1
-1
libmysqld/lib_sql.cc
libmysqld/lib_sql.cc
+24
-38
sql/mysqld.cc
sql/mysqld.cc
+1
-3
sql/sql_acl.cc
sql/sql_acl.cc
+140
-139
No files found.
include/violite.h
View file @
34c3484f
...
...
@@ -108,7 +108,6 @@ my_bool vio_poll_read(Vio *vio,uint timeout);
#ifdef __cplusplus
}
#endif
#endif
/* vio_violite_h_ */
#if defined(HAVE_VIO) && !defined(DONT_MAP_VIO)
#define vio_delete(vio) (vio)->viodelete(vio)
...
...
@@ -237,3 +236,4 @@ struct st_vio
#endif
/* HAVE_VIO */
};
#endif
/* EMBEDDED_LIBRARY */
#endif
/* vio_violite_h_ */
libmysqld/lib_sql.cc
View file @
34c3484f
...
...
@@ -19,13 +19,16 @@
#include "../regex/regex.h"
#include "my_sys.h"
/*
The following is needed to not cause conflicts when we include mysqld.cc
*/
#define main main1
#define mysql_unix_port mysql_inix_port1
#define mysql_port mysql_port1
#define net_read_timeout net_read_timeout1
#define net_write_timeout net_write_timeout1
#define changeable_vars changeable_vars1
//#define mysql_tmpdir mysql_tmpdir1
extern
"C"
{
...
...
@@ -36,38 +39,23 @@ extern "C"
class
THD
;
static
int
check_connections1
(
THD
*
thd
);
static
bool
check_user
(
THD
*
thd
,
enum_server_command
command
,
const
char
*
user
,
const
char
*
passwd
,
const
char
*
db
,
bool
check_count
);
static
int
check_connections2
(
THD
*
thd
);
extern
void
free_defaults
(
char
**
argv
);
void
free_defaults_internal
(
char
**
argv
){
if
(
argv
)
free_defaults
(
argv
);}
static
int
check_connections1
(
THD
*
thd
);
static
int
check_connections2
(
THD
*
thd
);
static
bool
check_user
(
THD
*
thd
,
enum_server_command
command
,
const
char
*
user
,
const
char
*
passwd
,
const
char
*
db
,
bool
check_count
);
void
free_defaults_internal
(
char
**
argv
)
{
if
(
argv
)
free_defaults
(
argv
);}
#define free_defaults free_defaults_internal
char
mysql_data_home
[
FN_REFLEN
];
char
*
get_mysql_data_home
()
{
return
mysql_data_home
;};
char
*
get_mysql_data_home
()
{
return
mysql_data_home
;
}
#define mysql_data_home mysql_data_home_internal
#include "../sql/mysqld.cc"
#define SCRAMBLE_LENGTH 8
extern
"C"
{
/*
void
free_defaults(char ** argv) {};
void
load_defaults(const char *, const char **, int *, char ***) {};
*/
char
*
get_mysql_home
(){
return
mysql_home
;};
char
*
get_mysql_real_data_home
(){
return
mysql_real_data_home
;};
char
*
get_mysql_home
(){
return
mysql_home
;};
char
*
get_mysql_real_data_home
(){
return
mysql_real_data_home
;};
bool
lib_dispatch_command
(
enum
enum_server_command
command
,
NET
*
net
,
...
...
@@ -83,9 +71,7 @@ bool lib_dispatch_command(enum enum_server_command command, NET *net,
}
void
lib_connection_phase
(
NET
*
net
,
int
phase
)
void
lib_connection_phase
(
NET
*
net
,
int
phase
)
{
THD
*
thd
;
thd
=
(
THD
*
)(
net
->
vio
->
dest_thd
);
...
...
@@ -99,7 +85,9 @@ lib_connection_phase(NET * net, int phase)
}
}
}
}
}
/* extern "C" */
void
start_embedded_conn1
(
NET
*
net
)
{
THD
*
thd
=
new
THD
;
...
...
@@ -662,14 +650,12 @@ void start_embedded_connection(NET * net)
{
start_embedded_conn1
(
net
);
}
//====================================================================
}
}
/* extern "C" */
int
embedded_do_command
(
NET
*
net
)
{
THD
*
thd
=
(
THD
*
)
net
->
vio
;
do_command
(
thd
);
return
0
;
}
sql/mysqld.cc
View file @
34c3484f
...
...
@@ -677,9 +677,7 @@ static sig_handler print_signal_warning(int sig)
void
unireg_end
(
int
signal_number
__attribute__
((
unused
)))
{
clean_up
();
#if defined(EMBEDDED_LIBRARY)
exit
(
0
);
// XXX QQ: this is a temporary hack (I hope)
#else
#ifndef EMBEDDED_LIBRARY
pthread_exit
(
0
);
// Exit is in main thread
#endif
}
...
...
sql/sql_acl.cc
View file @
34c3484f
This diff is collapsed.
Click to expand it.
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