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
c22c1d8a
Commit
c22c1d8a
authored
Sep 24, 2003
by
monty@mishka.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
efd94f5b
c674ffd5
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
39 additions
and
35 deletions
+39
-35
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
mysys/checksum.c
mysys/checksum.c
+4
-2
mysys/my_static.h
mysys/my_static.h
+0
-1
sql/item_strfunc.cc
sql/item_strfunc.cc
+6
-9
sql/lock.cc
sql/lock.cc
+0
-2
sql/log.cc
sql/log.cc
+0
-1
sql/mysql_priv.h
sql/mysql_priv.h
+17
-2
sql/net_serv.cc
sql/net_serv.cc
+6
-1
sql/repl_failsafe.cc
sql/repl_failsafe.cc
+0
-1
sql/set_var.cc
sql/set_var.cc
+0
-2
sql/sql_derived.cc
sql/sql_derived.cc
+0
-2
sql/sql_insert.cc
sql/sql_insert.cc
+0
-2
sql/sql_parse.cc
sql/sql_parse.cc
+0
-2
sql/sql_prepare.cc
sql/sql_prepare.cc
+0
-1
sql/sql_repl.cc
sql/sql_repl.cc
+0
-2
sql/sql_string.cc
sql/sql_string.cc
+5
-0
sql/sql_table.cc
sql/sql_table.cc
+0
-1
sql/sql_test.cc
sql/sql_test.cc
+0
-2
sql/sql_yacc.yy
sql/sql_yacc.yy
+0
-1
sql/table.cc
sql/table.cc
+0
-1
No files found.
BitKeeper/etc/logging_ok
View file @
c22c1d8a
...
...
@@ -73,6 +73,7 @@ monty@donna.mysql.fi
monty@hundin.mysql.fi
monty@mashka.(none)
monty@mashka.mysql.fi
monty@mishka.mysql.fi
monty@narttu.
monty@narttu.mysql.fi
monty@rescue.
...
...
mysys/checksum.c
View file @
c22c1d8a
...
...
@@ -30,11 +30,13 @@
ha_checksum
my_checksum
(
ha_checksum
crc
,
const
byte
*
pos
,
uint
length
)
{
/* const byte *end=pos+length;
#ifdef NOT_USED
const
byte
*
end
=
pos
+
length
;
for
(
;
pos
!=
end
;
pos
++
)
crc
=
((
crc
<<
8
)
+
*
((
uchar
*
)
pos
))
+
(
crc
>>
(
8
*
sizeof
(
ha_checksum
)
-
8
));
return
crc
;
*/
#else
return
(
ha_checksum
)
crc32
((
uint
)
crc
,
(
const
uchar
*
)
pos
,
length
);
#endif
}
mysys/my_static.h
View file @
c22c1d8a
...
...
@@ -19,7 +19,6 @@
a shared library
*/
#include "mysys_priv.h"
#include <signal.h>
#define MAX_SIGNALS 10
/* Max signals under a dont-allow */
...
...
sql/item_strfunc.cc
View file @
c22c1d8a
...
...
@@ -33,6 +33,7 @@
#include "md5.h"
#include "sha1.h"
#include "my_aes.h"
#include "../mysys/my_static.h" // For soundex_map
String
my_empty_string
(
""
,
default_charset_info
);
...
...
@@ -1496,15 +1497,11 @@ void Item_func_soundex::fix_length_and_dec()
}
/*
If alpha, map input letter to soundex code.
If not alpha and remove_garbage is set then skip to next char
else return 0
*/
extern
"C"
{
extern
const
char
*
soundex_map
;
// In mysys/static.c
}
/*
If alpha, map input letter to soundex code.
If not alpha and remove_garbage is set then skip to next char
else return 0
*/
static
char
get_scode
(
CHARSET_INFO
*
cs
,
char
*
ptr
)
{
...
...
sql/lock.cc
View file @
c22c1d8a
...
...
@@ -75,8 +75,6 @@
#include "../myisammrg/myrg_def.h"
#endif
extern
HASH
open_cache
;
static
MYSQL_LOCK
*
get_lock_data
(
THD
*
thd
,
TABLE
**
table
,
uint
count
,
bool
unlock
,
TABLE
**
write_locked
);
static
int
lock_external
(
THD
*
thd
,
TABLE
**
table
,
uint
count
);
...
...
sql/log.cc
View file @
c22c1d8a
...
...
@@ -31,7 +31,6 @@
#include <m_ctype.h> // For test_if_number
MYSQL_LOG
mysql_log
,
mysql_update_log
,
mysql_slow_log
,
mysql_bin_log
;
extern
I_List
<
i_string
>
binlog_do_db
,
binlog_ignore_db
;
static
bool
test_if_number
(
const
char
*
str
,
long
*
res
,
bool
allow_wildcards
);
...
...
sql/mysql_priv.h
View file @
c22c1d8a
...
...
@@ -707,6 +707,9 @@ bool open_log(MYSQL_LOG *log, const char *hostname,
enum_log_type
type
,
bool
read_append
,
bool
no_auto_events
,
ulong
max_size
);
/* mysqld.cc */
extern
void
yyerror
(
const
char
*
);
/*
External variables
*/
...
...
@@ -787,7 +790,7 @@ extern pthread_mutex_t LOCK_mysql_create_db,LOCK_Acl,LOCK_open,
LOCK_error_log
,
LOCK_delayed_insert
,
LOCK_delayed_status
,
LOCK_delayed_create
,
LOCK_crypt
,
LOCK_timezone
,
LOCK_slave_list
,
LOCK_active_mi
,
LOCK_manager
,
LOCK_global_system_variables
;
LOCK_global_system_variables
,
LOCK_user_conn
;
extern
rw_lock_t
LOCK_grant
;
extern
pthread_cond_t
COND_refresh
,
COND_thread_count
,
COND_manager
;
extern
pthread_attr_t
connection_attrib
;
...
...
@@ -804,7 +807,11 @@ extern SHOW_COMP_OPTION have_berkeley_db;
extern
struct
system_variables
global_system_variables
;
extern
struct
system_variables
max_system_variables
;
extern
struct
rand_struct
sql_rand
;
extern
String
null_string
;
extern
HASH
open_cache
;
extern
TABLE
*
unused_tables
;
extern
I_List
<
i_string
>
binlog_do_db
,
binlog_ignore_db
;
extern
const
char
*
any_db
;
extern
struct
my_option
my_long_options
[];
/* optional things, have_* variables */
...
...
@@ -939,6 +946,14 @@ bool flush_error_log(void);
void
free_list
(
I_List
<
i_string_pair
>
*
list
);
void
free_list
(
I_List
<
i_string
>
*
list
);
/* sql_yacc.cc */
extern
int
yyparse
(
void
*
thd
);
/* frm_crypt.cc */
#ifdef HAVE_CRYPTED_FRM
SQL_CRYPT
*
get_crypt_for_frm
(
void
);
#endif
/* Some inline functions for more speed */
inline
bool
add_item_to_list
(
THD
*
thd
,
Item
*
item
)
...
...
sql/net_serv.cc
View file @
c22c1d8a
...
...
@@ -88,10 +88,15 @@ void sql_print_error(const char *format,...);
#ifdef MYSQL_SERVER
#define USE_QUERY_CACHE
/*
The following variables/functions should really not be declared
extern, but as it's hard to include mysql_priv.h here, we have to
live with this for a while.
*/
extern
uint
test_flags
;
extern
void
query_cache_insert
(
NET
*
net
,
const
char
*
packet
,
ulong
length
);
extern
ulong
bytes_sent
,
bytes_received
,
net_big_packet_count
;
extern
pthread_mutex_t
LOCK_bytes_sent
,
LOCK_bytes_received
;
extern
void
query_cache_insert
(
NET
*
net
,
const
char
*
packet
,
ulong
length
);
#else
#undef statistic_add
#undef statistic_increment
...
...
sql/repl_failsafe.cc
View file @
c22c1d8a
...
...
@@ -34,7 +34,6 @@ RPL_STATUS rpl_status=RPL_NULL;
pthread_mutex_t
LOCK_rpl_status
;
pthread_cond_t
COND_rpl_status
;
HASH
slave_list
;
extern
const
char
*
any_db
;
const
char
*
rpl_role_type
[]
=
{
"MASTER"
,
"SLAVE"
,
NullS
};
TYPELIB
rpl_role_typelib
=
{
array_elements
(
rpl_role_type
)
-
1
,
""
,
...
...
sql/set_var.cc
View file @
c22c1d8a
...
...
@@ -1913,8 +1913,6 @@ static byte *get_sys_var_length(const sys_var *var, uint *length,
void
set_var_init
()
{
extern
struct
my_option
my_long_options
[];
// From mysqld
hash_init
(
&
system_variable_hash
,
system_charset_info
,
array_elements
(
sys_variables
),
0
,
0
,
(
hash_get_key
)
get_sys_var_length
,
0
,
0
);
...
...
sql/sql_derived.cc
View file @
c22c1d8a
...
...
@@ -25,8 +25,6 @@
#include "sql_select.h"
#include "sql_acl.h"
extern
const
char
*
any_db
;
// Special symbol for check_access
/*
Resolve derived tables in all queries
...
...
sql/sql_insert.cc
View file @
c22c1d8a
...
...
@@ -1569,8 +1569,6 @@ bool select_create::send_data(List<Item> &values)
return
0
;
}
extern
HASH
open_cache
;
bool
select_create
::
send_eof
()
{
...
...
sql/sql_parse.cc
View file @
c22c1d8a
...
...
@@ -44,7 +44,6 @@
#define MIN_HANDSHAKE_SIZE 6
#endif
/* HAVE_OPENSSL */
extern
int
yyparse
(
void
*
thd
);
extern
"C"
pthread_mutex_t
THR_LOCK_keycache
;
#ifdef SOLARIS
extern
"C"
int
gethostname
(
char
*
name
,
int
namelen
);
...
...
@@ -120,7 +119,6 @@ static bool end_active_trans(THD *thd)
static
HASH
hash_user_connections
;
extern
pthread_mutex_t
LOCK_user_conn
;
static
int
get_or_create_user_conn
(
THD
*
thd
,
const
char
*
user
,
const
char
*
host
,
...
...
sql/sql_prepare.cc
View file @
c22c1d8a
...
...
@@ -76,7 +76,6 @@ Long data handling:
#define STMT_QUERY_LOG_LENGTH 8192
extern
int
yyparse
(
void
*
thd
);
String
null_string
(
"NULL"
,
4
,
default_charset_info
);
/*
...
...
sql/sql_repl.cc
View file @
c22c1d8a
...
...
@@ -24,8 +24,6 @@
#include "log_event.h"
#include <my_dir.h>
extern
const
char
*
any_db
;
int
max_binlog_dump_events
=
0
;
// unlimited
my_bool
opt_sporadic_binlog_dump_fail
=
0
;
static
int
binlog_dump_count
=
0
;
...
...
sql/sql_string.cc
View file @
c22c1d8a
...
...
@@ -28,6 +28,11 @@
#include <floatingpoint.h>
#endif
/*
The following extern declarations are ok as these are interface functions
required by the string function
*/
extern
gptr
sql_alloc
(
unsigned
size
);
extern
void
sql_element_free
(
void
*
ptr
);
...
...
sql/sql_table.cc
View file @
c22c1d8a
...
...
@@ -29,7 +29,6 @@
#include <io.h>
#endif
extern
HASH
open_cache
;
static
const
char
*
primary_key_name
=
"PRIMARY"
;
static
bool
check_if_keyname_exists
(
const
char
*
name
,
KEY
*
start
,
KEY
*
end
);
...
...
sql/sql_test.cc
View file @
c22c1d8a
...
...
@@ -41,7 +41,6 @@ static const char *lock_descriptions[] =
"High priority write lock"
,
"Highest priority write lock"
};
extern
HASH
open_cache
;
#ifndef DBUG_OFF
...
...
@@ -65,7 +64,6 @@ print_where(COND *cond,const char *info)
}
/* This is for debugging purposes */
extern
TABLE
*
unused_tables
;
void
print_cached_tables
(
void
)
{
...
...
sql/sql_yacc.yy
View file @
c22c1d8a
...
...
@@ -38,7 +38,6 @@
#include <myisam.h>
#include <myisammrg.h>
extern void yyerror(const char*);
int yylex(void *yylval, void *yythd);
#define yyoverflow(A,B,C,D,E,F) if (my_yyoverflow((B),(D),(int*) (F))) { yyerror((char*) (A)); return 2; }
...
...
sql/table.cc
View file @
c22c1d8a
...
...
@@ -236,7 +236,6 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag,
#ifdef HAVE_CRYPTED_FRM
else
if
(
*
(
head
+
26
)
==
2
)
{
extern
SQL_CRYPT
*
get_crypt_for_frm
(
void
);
my_pthread_setspecific_ptr
(
THR_MALLOC
,
old_root
);
crypted
=
get_crypt_for_frm
();
my_pthread_setspecific_ptr
(
THR_MALLOC
,
&
outparam
->
mem_root
);
...
...
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