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
4e6a4dfa
Commit
4e6a4dfa
authored
Feb 24, 2005
by
mskold@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
d3573d7e
2b1f0bf1
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
25 additions
and
18 deletions
+25
-18
Build-tools/Bootstrap
Build-tools/Bootstrap
+1
-1
VC++Files/libmysqld/libmysqld.dsp
VC++Files/libmysqld/libmysqld.dsp
+1
-1
mysql-test/r/sp.result
mysql-test/r/sp.result
+4
-5
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+4
-2
sql/mysqld.cc
sql/mysqld.cc
+3
-4
sql/protocol.cc
sql/protocol.cc
+3
-1
sql/sql_map.cc
sql/sql_map.cc
+1
-2
sql/sql_parse.cc
sql/sql_parse.cc
+6
-0
sql/sql_select.cc
sql/sql_select.cc
+2
-2
No files found.
Build-tools/Bootstrap
View file @
4e6a4dfa
...
...
@@ -278,7 +278,7 @@ if (defined $opt_changelog)
unless
(
$opt_skip_manual
)
{
&
logger
("
Updating manual files
");
foreach
$file
qw/internals manual reservedwords/
foreach
$file
qw/internals manual reservedwords
errmsg-table cl-errmsg-table
/
{
system
("
bk cat
$opt_docdir
/Docs/
$file
.texi >
$target_dir
/Docs/
$file
.texi
")
==
0
or
&
abort
("
Could not update
$file
.texi in
$target_dir
/Docs/!
");
...
...
VC++Files/libmysqld/libmysqld.dsp
View file @
4e6a4dfa
...
...
@@ -344,7 +344,7 @@ SOURCE=..\mysys\my_alloc.c
# End Source File
# Begin Source File
SOURCE=..\
mysys
\my_decimal.cpp
SOURCE=..\
sql
\my_decimal.cpp
# End Source File
# Begin Source File
...
...
mysql-test/r/sp.result
View file @
4e6a4dfa
...
...
@@ -656,7 +656,6 @@ delete from t1|
drop table if exists t3|
create table t3 ( s char(16), d int)|
call into_test4()|
Warnings:
select * from t3|
s d
into4 NULL
...
...
@@ -1344,9 +1343,7 @@ end if;
insert into t4 values (2, rc, t3);
end|
call bug1863(10)|
Warnings:
call bug1863(10)|
Warnings:
select * from t4|
f1 rc t3
2 0 NULL
...
...
@@ -1643,9 +1640,7 @@ begin
end|
call bug4579_1()|
call bug4579_1()|
Warnings:
call bug4579_1()|
Warnings:
drop procedure bug4579_1|
drop procedure bug4579_2|
drop table t3|
...
...
@@ -2118,12 +2113,16 @@ var
call bug7743("OneWord")|
var
NULL
Warnings:
Warning 1329 No data to FETCH
call bug7743("anotherword")|
var
2
call bug7743("AnotherWord")|
var
NULL
Warnings:
Warning 1329 No data to FETCH
drop procedure bug7743|
drop table t4|
delete from t3|
...
...
sql/ha_ndbcluster.cc
View file @
4e6a4dfa
...
...
@@ -5697,8 +5697,11 @@ extern "C" pthread_handler_decl(ndb_util_thread_func,
continue
;
}
/* Round tim e from millisceonds to seconds */
uint
wait_secs
=
((
ndb_cache_check_time
+
999
)
/
1000
);
DBUG_PRINT
(
"ndb_util_thread"
,
(
"wait_secs: %d"
,
wait_secs
));
/* Set new time to wake up */
set_timespec
(
abstime
,
ndb_cache_check_time
);
set_timespec
(
abstime
,
wait_secs
);
/* Lock mutex and fill list with pointers to all open tables */
NDB_SHARE
*
share
;
...
...
@@ -5707,7 +5710,6 @@ extern "C" pthread_handler_decl(ndb_util_thread_func,
{
share
=
(
NDB_SHARE
*
)
hash_element
(
&
ndbcluster_open_tables
,
i
);
share
->
use_count
++
;
/* Make sure the table can't be closed */
DBUG_PRINT
(
"ndb_util_thread"
,
(
"Found open table[%d]: %s, use_count: %d"
,
i
,
share
->
table_name
,
share
->
use_count
));
...
...
sql/mysqld.cc
View file @
4e6a4dfa
...
...
@@ -4691,10 +4691,9 @@ Disable with --skip-ndbcluster (will save memory).",
(
gptr
*
)
&
opt_ndb_optimized_node_selection
,
0
,
GET_BOOL
,
OPT_ARG
,
1
,
0
,
0
,
0
,
0
,
0
},
{
"ndb-cache-check-time"
,
OPT_NDB_CACHE_CHECK_TIME
,
"A dedicated thread is created to update cached commit count value"
" at the given interval."
,
(
gptr
*
)
&
opt_ndb_cache_check_time
,
(
gptr
*
)
&
opt_ndb_cache_check_time
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
0
,
0
,
LONG_TIMEOUT
,
0
,
1
,
0
},
"A dedicated thread is created to, at the given millisecons interval, invalidate the query cache if another MySQL server in the cluster has changed the data in the database."
,
(
gptr
*
)
&
opt_ndb_cache_check_time
,
(
gptr
*
)
&
opt_ndb_cache_check_time
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
0
,
0
,
LONG_TIMEOUT
,
0
,
1
,
0
},
#endif
{
"new"
,
'n'
,
"Use very new possible 'unsafe' functions."
,
(
gptr
*
)
&
global_system_variables
.
new_mode
,
...
...
sql/protocol.cc
View file @
4e6a4dfa
...
...
@@ -359,7 +359,9 @@ send_eof(THD *thd, bool no_flush)
if
(
thd
->
client_capabilities
&
CLIENT_PROTOCOL_41
)
{
uchar
buff
[
5
];
uint
tmp
=
min
(
thd
->
total_warn_count
,
65535
);
/* Don't send warn count during SP execution, as the warn_list
is cleared between substatements, and mysqltest gets confused */
uint
tmp
=
(
thd
->
spcont
?
0
:
min
(
thd
->
total_warn_count
,
65535
));
buff
[
0
]
=
254
;
int2store
(
buff
+
1
,
tmp
);
/*
...
...
sql/sql_map.cc
View file @
4e6a4dfa
...
...
@@ -19,9 +19,8 @@
#pragma implementation // gcc: Class implementation
#endif
#include <sys/stat.h>
#include "mysql_priv.h"
#include <sys/stat.h>
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
...
...
sql/sql_parse.cc
View file @
4e6a4dfa
...
...
@@ -4185,6 +4185,12 @@ mysql_execute_command(THD *thd)
thd
->
row_count_func
=
0
;
res
=
sp
->
execute_procedure
(
thd
,
&
lex
->
value_list
);
/* If warnings have been cleared, we have to clear total_warn_count
* too, otherwise the clients get confused.
*/
if
(
thd
->
warn_list
.
is_empty
())
thd
->
total_warn_count
=
0
;
thd
->
variables
.
select_limit
=
select_limit
;
#ifndef NO_EMBEDDED_ACCESS_CHECKS
sp_restore_security_context
(
thd
,
sp
,
&
save_ctx
);
...
...
sql/sql_select.cc
View file @
4e6a4dfa
...
...
@@ -11418,8 +11418,8 @@ find_order_in_list(THD *thd, Item **ref_pointer_array, TABLE_LIST *tables,
in is field of view table => check that references on translation
table are same
*/
((
*
select_item
)
->
type
()
==
Item
::
Item
::
REF_ITEM
&&
view_ref
->
type
()
==
Item
::
Item
::
REF_ITEM
&&
((
*
select_item
)
->
type
()
==
Item
::
REF_ITEM
&&
view_ref
->
type
()
==
Item
::
REF_ITEM
&&
((
Item_ref
*
)
(
*
select_item
))
->
ref
==
((
Item_ref
*
)
view_ref
)
->
ref
)))
/*
...
...
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