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
9ace4da5
Commit
9ace4da5
authored
May 27, 2011
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
8a314700
7aba87b7
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
83 additions
and
16 deletions
+83
-16
mysql-test/suite/innodb/r/innodb_bug60049.result
mysql-test/suite/innodb/r/innodb_bug60049.result
+1
-0
mysql-test/suite/innodb/t/innodb_bug60049.test
mysql-test/suite/innodb/t/innodb_bug60049.test
+4
-5
mysql-test/suite/innodb_plugin/r/innodb_bug60049.result
mysql-test/suite/innodb_plugin/r/innodb_bug60049.result
+1
-0
mysql-test/suite/innodb_plugin/t/innodb_bug60049.test
mysql-test/suite/innodb_plugin/t/innodb_bug60049.test
+4
-0
sql-bench/server-cfg.sh
sql-bench/server-cfg.sh
+11
-0
sql/log.cc
sql/log.cc
+16
-2
sql/mysqld.cc
sql/mysqld.cc
+32
-1
sql/tztime.cc
sql/tztime.cc
+2
-2
storage/pbxt/src/pthread_xt.cc
storage/pbxt/src/pthread_xt.cc
+2
-0
win/packaging/create_msi.cmake.in
win/packaging/create_msi.cmake.in
+10
-6
No files found.
mysql-test/suite/innodb/r/innodb_bug60049.result
View file @
9ace4da5
set @@global.innodb_fast_shutdown=0;
CREATE TABLE t(a INT)ENGINE=InnoDB;
RENAME TABLE t TO u;
DROP TABLE u;
...
...
mysql-test/suite/innodb/t/innodb_bug60049.test
View file @
9ace4da5
...
...
@@ -5,11 +5,10 @@
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_innodb
.
inc
if
(
`SELECT @@innodb_fast_shutdown != 0`
)
{
skip
Need
innodb_fast_shutdown
=
0
;
}
#
# This test will not work if we don't do full shutdown of innodb
#
set
@@
global
.
innodb_fast_shutdown
=
0
;
CREATE
TABLE
t
(
a
INT
)
ENGINE
=
InnoDB
;
RENAME
TABLE
t
TO
u
;
...
...
mysql-test/suite/innodb_plugin/r/innodb_bug60049.result
View file @
9ace4da5
set @@global.innodb_fast_shutdown=0;
CREATE TABLE t(a INT)ENGINE=InnoDB;
RENAME TABLE t TO u;
DROP TABLE u;
...
...
mysql-test/suite/innodb_plugin/t/innodb_bug60049.test
View file @
9ace4da5
...
...
@@ -5,6 +5,10 @@
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_innodb_plugin
.
inc
# This test will not work if we don't do full shutdown of innodb
#
set
@@
global
.
innodb_fast_shutdown
=
0
;
CREATE
TABLE
t
(
a
INT
)
ENGINE
=
InnoDB
;
RENAME
TABLE
t
TO
u
;
DROP
TABLE
u
;
...
...
sql-bench/server-cfg.sh
View file @
9ace4da5
...
...
@@ -179,11 +179,22 @@ sub new
{
$limits
{
'working_blobs'
}
=
0
;
# HEAP tables can't handle BLOB's
}
# HEAP is deprecated in favor of MEMORY
if
(
defined
(
$main
::opt_create_options
)
&&
$main
::opt_create_options
=
~ /engine
=
memory/i
)
{
$limits
{
'working_blobs'
}
=
0
;
# MEMORY tables can't handle BLOB's
}
if
(
defined
(
$main
::opt_create_options
)
&&
$main
::opt_create_options
=
~ /engine
=
innodb/i
)
{
$self
->
{
'transactions'
}
=
1
;
# Transactions enabled
}
if
(
defined
(
$main
::opt_create_options
)
&&
$main
::opt_create_options
=
~ /engine
=
pbxt/i
)
{
$self
->
{
'transactions'
}
=
1
;
# Transactions enabled
}
if
(
defined
(
$main
::opt_create_options
)
&&
$main
::opt_create_options
=
~ /engine
=
ndb/i
)
{
...
...
sql/log.cc
View file @
9ace4da5
...
...
@@ -5818,7 +5818,21 @@ static bool test_if_number(register const char *str,
void
sql_perror
(
const
char
*
message
)
{
#ifdef HAVE_STRERROR
#if defined(_WIN32)
char
*
buf
;
DWORD
dw
=
GetLastError
();
if
(
FormatMessage
(
FORMAT_MESSAGE_ALLOCATE_BUFFER
|
FORMAT_MESSAGE_FROM_SYSTEM
|
FORMAT_MESSAGE_IGNORE_INSERTS
,
NULL
,
dw
,
MAKELANGID
(
LANG_NEUTRAL
,
SUBLANG_DEFAULT
),
(
LPSTR
)
&
buf
,
0
,
NULL
)
>
0
)
{
sql_print_error
(
"%s: %s"
,
message
,
buf
);
LocalFree
((
HLOCAL
)
buf
);
}
else
{
sql_print_error
(
"%s"
,
message
);
}
#elif defined(HAVE_STRERROR)
sql_print_error
(
"%s: %s"
,
message
,
strerror
(
errno
));
#else
perror
(
message
);
...
...
sql/mysqld.cc
View file @
9ace4da5
...
...
@@ -4037,6 +4037,32 @@ static void end_ssl()
#endif
/* EMBEDDED_LIBRARY */
#ifdef _WIN32
/**
Registers a file to be collected when Windows Error Reporting creates a crash
report.
@note only works on Vista and later, since WerRegisterFile() is not available
on earlier Windows.
*/
#include <werapi.h>
static
void
add_file_to_crash_report
(
char
*
file
)
{
/* Load WerRegisterFile function dynamically.*/
HRESULT
(
WINAPI
*
pWerRegisterFile
)(
PCWSTR
,
WER_REGISTER_FILE_TYPE
,
DWORD
)
=
(
HRESULT
(
WINAPI
*
)
(
PCWSTR
,
WER_REGISTER_FILE_TYPE
,
DWORD
))
GetProcAddress
(
GetModuleHandle
(
"kernel32"
),
"WerRegisterFile"
);
if
(
pWerRegisterFile
)
{
wchar_t
wfile
[
MAX_PATH
+
1
]
=
{
0
};
if
(
mbstowcs
(
wfile
,
file
,
MAX_PATH
)
!=
(
size_t
)
-
1
)
{
pWerRegisterFile
(
wfile
,
WerRegFileTypeOther
,
WER_FILE_ANONYMOUS_DATA
);
}
}
}
#endif
static
int
init_server_components
()
{
...
...
@@ -4089,6 +4115,11 @@ static int init_server_components()
if
(
!
res
)
setbuf
(
stderr
,
NULL
);
#ifdef _WIN32
/* Add error log to windows crash reporting. */
add_file_to_crash_report
(
log_error_file
);
#endif
}
}
...
...
@@ -8994,7 +9025,7 @@ mysqld_get_one_option(int optid,
}
case
OPT_EVENT_SCHEDULER
:
#ifndef HAVE_EVENT_SCHEDULER
sql_perror
(
"Event scheduler is not supported in embedded build."
);
sql_p
rint_
error
(
"Event scheduler is not supported in embedded build."
);
#else
if
(
Events
::
set_opt_event_scheduler
(
argument
))
return
1
;
...
...
sql/tztime.cc
View file @
9ace4da5
...
...
@@ -214,7 +214,7 @@ tz_load(const char *name, TIME_ZONE_INFO *sp, MEM_ROOT *storage)
ALIGN_SIZE
(
sp
->
typecnt
*
sizeof
(
TRAN_TYPE_INFO
))
+
#ifdef ABBR_ARE_USED
ALIGN_SIZE
(
sp
->
charcnt
)
+
ALIGN_SIZE
(
sp
->
charcnt
+
1
)
+
#endif
sp
->
leapcnt
*
sizeof
(
LS_INFO
))))
return
1
;
...
...
@@ -227,7 +227,7 @@ tz_load(const char *name, TIME_ZONE_INFO *sp, MEM_ROOT *storage)
tzinfo_buf
+=
ALIGN_SIZE
(
sp
->
typecnt
*
sizeof
(
TRAN_TYPE_INFO
));
#ifdef ABBR_ARE_USED
sp
->
chars
=
tzinfo_buf
;
tzinfo_buf
+=
ALIGN_SIZE
(
sp
->
charcnt
);
tzinfo_buf
+=
ALIGN_SIZE
(
sp
->
charcnt
+
1
);
#endif
sp
->
lsis
=
(
LS_INFO
*
)
tzinfo_buf
;
...
...
storage/pbxt/src/pthread_xt.cc
View file @
9ace4da5
...
...
@@ -558,8 +558,10 @@ xtPublic int xt_p_set_low_priority(pthread_t thr)
*/
/* -20 = highest, 20 = lowest */
#ifdef SET_GLOBAL_PRIORITY
if
(
setpriority
(
PRIO_PROCESS
,
getpid
(),
20
)
==
-
1
)
return
errno
;
#endif
return
0
;
}
return
pth_set_priority
(
thr
,
pth_min_priority
);
...
...
win/packaging/create_msi.cmake.in
View file @
9ace4da5
...
...
@@ -304,20 +304,24 @@ ENDFUNCTION()
FUNCTION(TRAVERSE_DIRECTORIES dir topdir file prefix)
FILE(RELATIVE_PATH rel ${topdir} ${dir})
IF(rel AND IS_DIRECTORY "${f}")
IF(rel)
IF (IS_DIRECTORY "${f}")
MAKE_WIX_IDENTIFIER("${rel}" id)
GET_FILENAME_COMPONENT(name ${dir} NAME)
FILE(APPEND ${file} "${prefix}<Directory Id='D.${id}' Name='${name}'>\n")
ENDIF()
ENDIF()
FILE(GLOB all_files ${dir}/*)
FOREACH(f ${all_files})
IF(IS_DIRECTORY ${f})
TRAVERSE_DIRECTORIES(${f} ${topdir} ${file} "${prefix} ")
ENDIF()
ENDFOREACH()
IF(rel AND IS_DIRECTORY "${f}")
IF(rel)
IF(IS_DIRECTORY "${f}")
FILE(APPEND ${file} "${prefix}</Directory>\n")
ENDIF()
ENDIF()
ENDFUNCTION()
SET(CPACK_WIX_COMPONENTS)
...
...
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