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
2004bd17
Commit
2004bd17
authored
Apr 16, 2012
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
6d22c2e7
806df88c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
48 deletions
+33
-48
storage/innodb_plugin/include/ut0dbg.h
storage/innodb_plugin/include/ut0dbg.h
+13
-21
storage/xtradb/include/ut0dbg.h
storage/xtradb/include/ut0dbg.h
+13
-21
win/packaging/ca/CustomAction.cpp
win/packaging/ca/CustomAction.cpp
+7
-6
No files found.
storage/innodb_plugin/include/ut0dbg.h
View file @
2004bd17
...
...
@@ -54,27 +54,14 @@ ut_dbg_assertion_failed(
const
char
*
file
,
/*!< in: source file containing the assertion */
ulint
line
);
/*!< in: line number of the assertion */
#ifdef __NETWARE__
/** Flag for ignoring further assertion failures. This is set to TRUE
when on NetWare there happens an InnoDB assertion failure or other
fatal error condition that requires an immediate shutdown. */
extern
ibool
panic_shutdown
;
/* Abort the execution. */
void
ut_dbg_panic
(
void
);
# define UT_DBG_PANIC ut_dbg_panic()
/* Stop threads in ut_a(). */
# define UT_DBG_STOP do {} while (0)
/* We do not do this on NetWare */
#else
/* __NETWARE__ */
# if defined(__WIN__) || defined(__INTEL_COMPILER)
# undef UT_DBG_USE_ABORT
# elif defined(__GNUC__) && (__GNUC__ > 2)
# define UT_DBG_USE_ABORT
# endif
# ifndef UT_DBG_USE_ABORT
#define UT_DBG_USE_ABORT
#ifndef UT_DBG_USE_ABORT
/** A null pointer that will be dereferenced to trigger a memory trap */
extern
ulint
*
ut_dbg_null_ptr
;
#
endif
#endif
# if defined(UNIV_SYNC_DEBUG) || !defined(UT_DBG_USE_ABORT)
/** If this is set to TRUE by ut_dbg_assertion_failed(), all threads
...
...
@@ -91,9 +78,14 @@ ut_dbg_stop_thread(
ulint
line
);
# endif
# ifdef UT_DBG_USE_ABORT
#ifdef UT_DBG_USE_ABORT
/** Abort the execution. */
#ifdef _WIN32
# define UT_DBG_PANIC __debugbreak()
#else
# define UT_DBG_PANIC abort()
#endif
/** Stop threads (null operation) */
# define UT_DBG_STOP do {} while (0)
# else
/* UT_DBG_USE_ABORT */
...
...
@@ -106,7 +98,7 @@ ut_dbg_stop_thread(
ut_dbg_stop_thread(__FILE__, (ulint) __LINE__); \
} while (0)
# endif
/* UT_DBG_USE_ABORT */
#endif
/* __NETWARE__ */
/** Abort execution if EXPR does not evaluate to nonzero.
@param EXPR assertion expression that should hold */
...
...
storage/xtradb/include/ut0dbg.h
View file @
2004bd17
...
...
@@ -54,27 +54,14 @@ ut_dbg_assertion_failed(
const
char
*
file
,
/*!< in: source file containing the assertion */
ulint
line
);
/*!< in: line number of the assertion */
#ifdef __NETWARE__
/** Flag for ignoring further assertion failures. This is set to TRUE
when on NetWare there happens an InnoDB assertion failure or other
fatal error condition that requires an immediate shutdown. */
extern
ibool
panic_shutdown
;
/* Abort the execution. */
void
ut_dbg_panic
(
void
);
# define UT_DBG_PANIC ut_dbg_panic()
/* Stop threads in ut_a(). */
# define UT_DBG_STOP do {} while (0)
/* We do not do this on NetWare */
#else
/* __NETWARE__ */
# if defined(__WIN__) || defined(__INTEL_COMPILER)
# undef UT_DBG_USE_ABORT
# elif defined(__GNUC__) && (__GNUC__ > 2)
# define UT_DBG_USE_ABORT
# endif
# ifndef UT_DBG_USE_ABORT
#define UT_DBG_USE_ABORT
#ifndef UT_DBG_USE_ABORT
/** A null pointer that will be dereferenced to trigger a memory trap */
extern
ulint
*
ut_dbg_null_ptr
;
#
endif
#endif
# if defined(UNIV_SYNC_DEBUG) || !defined(UT_DBG_USE_ABORT)
/** If this is set to TRUE by ut_dbg_assertion_failed(), all threads
...
...
@@ -91,9 +78,14 @@ ut_dbg_stop_thread(
ulint
line
);
# endif
# ifdef UT_DBG_USE_ABORT
#ifdef UT_DBG_USE_ABORT
/** Abort the execution. */
#ifdef _WIN32
# define UT_DBG_PANIC __debugbreak()
#else
# define UT_DBG_PANIC abort()
#endif
/** Stop threads (null operation) */
# define UT_DBG_STOP do {} while (0)
# else
/* UT_DBG_USE_ABORT */
...
...
@@ -106,7 +98,7 @@ ut_dbg_stop_thread(
ut_dbg_stop_thread(__FILE__, (ulint) __LINE__); \
} while (0)
# endif
/* UT_DBG_USE_ABORT */
#endif
/* __NETWARE__ */
/** Abort execution if EXPR does not evaluate to nonzero.
@param EXPR assertion expression that should hold */
...
...
win/packaging/ca/CustomAction.cpp
View file @
2004bd17
...
...
@@ -80,7 +80,7 @@ extern "C" UINT __stdcall RemoveDataDirectory(MSIHANDLE hInstall)
It is assumed that called will add double quotation marks before and after
the string.
*/
static
void
EscapeCommandLine
(
const
wchar_t
*
in
,
wchar_t
*
out
)
static
void
EscapeCommandLine
(
const
wchar_t
*
in
,
wchar_t
*
out
,
size_t
buflen
)
{
const
wchar_t
special_chars
[]
=
L"
\t\n\v\"
"
;
bool
needs_escaping
=
false
;
...
...
@@ -97,7 +97,7 @@ static void EscapeCommandLine(const wchar_t *in, wchar_t *out)
if
(
!
needs_escaping
)
{
wcscpy
(
out
,
in
);
wcscpy
_s
(
out
,
buflen
,
in
);
return
;
}
...
...
@@ -119,7 +119,7 @@ static void EscapeCommandLine(const wchar_t *in, wchar_t *out)
Escape all backslashes, but let the terminating double quotation mark
that caller adds be interpreted as a metacharacter.
*/
for
(
in
t
j
=
0
;
j
<
2
*
n_backslashes
;
j
++
)
for
(
size_
t
j
=
0
;
j
<
2
*
n_backslashes
;
j
++
)
{
out
[
pos
++
]
=
L'\\'
;
}
...
...
@@ -130,7 +130,7 @@ static void EscapeCommandLine(const wchar_t *in, wchar_t *out)
/*
Escape all backslashes and the following double quotation mark.
*/
for
(
in
t
j
=
0
;
j
<
2
*
n_backslashes
+
1
;
j
++
)
for
(
size_
t
j
=
0
;
j
<
2
*
n_backslashes
+
1
;
j
++
)
{
out
[
pos
++
]
=
L'\\'
;
}
...
...
@@ -139,7 +139,7 @@ static void EscapeCommandLine(const wchar_t *in, wchar_t *out)
else
{
/* Backslashes aren't special here. */
for
(
in
t
j
=
0
;
j
<
n_backslashes
;
j
++
)
for
(
size_
t
j
=
0
;
j
<
n_backslashes
;
j
++
)
out
[
pos
++
]
=
L'\\'
;
out
[
pos
++
]
=
c
;
...
...
@@ -592,7 +592,8 @@ extern "C" UINT __stdcall CheckDatabaseProperties (MSIHANDLE hInstall)
DWORD
PasswordLen
=
MAX_PATH
;
MsiGetPropertyW
(
hInstall
,
L"PASSWORD"
,
Password
,
&
PasswordLen
);
EscapeCommandLine
(
Password
,
EscapedPassword
);
EscapeCommandLine
(
Password
,
EscapedPassword
,
sizeof
(
EscapedPassword
)
/
sizeof
(
EscapedPassword
[
0
]));
MsiSetPropertyW
(
hInstall
,
L"ESCAPEDPASSWORD"
,
EscapedPassword
);
DWORD
SkipNetworkingLen
=
MAX_PATH
;
...
...
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