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
4873f9ab
Commit
4873f9ab
authored
Mar 08, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DBUG_ASSERT_LOCK
include/my_sys.h: added DBUG_ASSERT_LOCK() sql/slave.cc: use DBUG_ASSERT_LOCK()
parent
169ecafd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
include/my_sys.h
include/my_sys.h
+6
-0
sql/slave.cc
sql/slave.cc
+1
-1
No files found.
include/my_sys.h
View file @
4873f9ab
...
@@ -725,6 +725,12 @@ byte *my_compress_alloc(const byte *packet, ulong *len, ulong *complen);
...
@@ -725,6 +725,12 @@ byte *my_compress_alloc(const byte *packet, ulong *len, ulong *complen);
ulong
checksum
(
const
byte
*
mem
,
uint
count
);
ulong
checksum
(
const
byte
*
mem
,
uint
count
);
uint
my_bit_log2
(
ulong
value
);
uint
my_bit_log2
(
ulong
value
);
#if defined(SAFE_MUTEX) && !defined(DBUG_OFF)
#define DBUG_ASSERT_LOCK(lock) DBUG_ASSERT((lock)->count == 1 && \
(lock)->thread == pthread_self())
#else
#define DBUG_ASSERT_LOCK(lock)
#endif
#if defined(_MSC_VER) && !defined(__WIN__)
#if defined(_MSC_VER) && !defined(__WIN__)
extern
void
sleep
(
int
sec
);
extern
void
sleep
(
int
sec
);
...
...
sql/slave.cc
View file @
4873f9ab
...
@@ -361,7 +361,7 @@ int terminate_slave_thread(THD* thd, pthread_mutex_t* term_lock,
...
@@ -361,7 +361,7 @@ int terminate_slave_thread(THD* thd, pthread_mutex_t* term_lock,
abstime
.
tv_sec
=
tv
.
tv_sec
+
2
;
abstime
.
tv_sec
=
tv
.
tv_sec
+
2
;
abstime
.
tv_nsec
=
tv
.
tv_usec
*
1000
;
abstime
.
tv_nsec
=
tv
.
tv_usec
*
1000
;
#endif
#endif
DBUG_ASSERT
(
cond_lock
->
count
>
0
&&
cond_lock
->
thread
==
pthread_self
()
);
DBUG_ASSERT
_LOCK
(
cond_lock
);
pthread_cond_timedwait
(
term_cond
,
cond_lock
,
&
abstime
);
pthread_cond_timedwait
(
term_cond
,
cond_lock
,
&
abstime
);
if
(
*
slave_running
)
if
(
*
slave_running
)
KICK_SLAVE
(
thd
);
KICK_SLAVE
(
thd
);
...
...
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