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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
1da2b9b4
Commit
1da2b9b4
authored
Jul 14, 2005
by
konstantin@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/media/sda1/mysql/mysql-5.0-10760-new
parents
4099582b
9c6f14aa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
mysys/my_os2cond.c
mysys/my_os2cond.c
+1
-1
sql/item_func.cc
sql/item_func.cc
+5
-5
sql/slave.cc
sql/slave.cc
+1
-1
sql/sql_insert.cc
sql/sql_insert.cc
+1
-1
No files found.
mysys/my_os2cond.c
View file @
1da2b9b4
...
@@ -100,7 +100,7 @@ int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
...
@@ -100,7 +100,7 @@ int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
rc
=
DosWaitEventSem
(
cond
->
semaphore
,
timeout
);
rc
=
DosWaitEventSem
(
cond
->
semaphore
,
timeout
);
if
(
rc
!=
0
)
if
(
rc
!=
0
)
rval
=
ETIME
;
rval
=
ETIMEDOUT
;
if
(
mutex
)
pthread_mutex_lock
(
mutex
);
if
(
mutex
)
pthread_mutex_lock
(
mutex
);
...
...
sql/item_func.cc
View file @
1da2b9b4
...
@@ -3157,7 +3157,7 @@ void debug_sync_point(const char* lock_name, uint lock_timeout)
...
@@ -3157,7 +3157,7 @@ void debug_sync_point(const char* lock_name, uint lock_timeout)
THD
*
thd
=
current_thd
;
THD
*
thd
=
current_thd
;
User_level_lock
*
ull
;
User_level_lock
*
ull
;
struct
timespec
abstime
;
struct
timespec
abstime
;
int
lock_name_len
,
error
=
0
;
int
lock_name_len
;
lock_name_len
=
strlen
(
lock_name
);
lock_name_len
=
strlen
(
lock_name
);
pthread_mutex_lock
(
&
LOCK_user_locks
);
pthread_mutex_lock
(
&
LOCK_user_locks
);
...
@@ -3191,8 +3191,8 @@ void debug_sync_point(const char* lock_name, uint lock_timeout)
...
@@ -3191,8 +3191,8 @@ void debug_sync_point(const char* lock_name, uint lock_timeout)
set_timespec
(
abstime
,
lock_timeout
);
set_timespec
(
abstime
,
lock_timeout
);
while
(
!
thd
->
killed
&&
while
(
!
thd
->
killed
&&
(
error
=
pthread_cond_timedwait
(
&
ull
->
cond
,
&
LOCK_user_locks
,
&
abstime
))
pthread_cond_timedwait
(
&
ull
->
cond
,
&
LOCK_user_locks
,
!=
ETIME
&&
error
!=
ETIMEDOUT
&&
ull
->
locked
)
;
&
abstime
)
!=
ETIMEDOUT
&&
ull
->
locked
)
;
if
(
ull
->
locked
)
if
(
ull
->
locked
)
{
{
if
(
!--
ull
->
count
)
if
(
!--
ull
->
count
)
...
@@ -3294,14 +3294,14 @@ longlong Item_func_get_lock::val_int()
...
@@ -3294,14 +3294,14 @@ longlong Item_func_get_lock::val_int()
set_timespec
(
abstime
,
timeout
);
set_timespec
(
abstime
,
timeout
);
while
(
!
thd
->
killed
&&
while
(
!
thd
->
killed
&&
(
error
=
pthread_cond_timedwait
(
&
ull
->
cond
,
&
LOCK_user_locks
,
&
abstime
))
(
error
=
pthread_cond_timedwait
(
&
ull
->
cond
,
&
LOCK_user_locks
,
&
abstime
))
!=
ETIME
&&
error
!=
ETIMEDOUT
&&
error
!=
EINVAL
&&
ull
->
locked
)
;
!=
ETIMEDOUT
&&
error
!=
EINVAL
&&
ull
->
locked
)
;
if
(
thd
->
killed
)
if
(
thd
->
killed
)
error
=
EINTR
;
// Return NULL
error
=
EINTR
;
// Return NULL
if
(
ull
->
locked
)
if
(
ull
->
locked
)
{
{
if
(
!--
ull
->
count
)
if
(
!--
ull
->
count
)
delete
ull
;
// Should never happen
delete
ull
;
// Should never happen
if
(
error
!=
ETIME
&&
error
!=
ETIME
DOUT
)
if
(
error
!=
ETIMEDOUT
)
{
{
error
=
1
;
error
=
1
;
null_value
=
1
;
// Return NULL
null_value
=
1
;
// Return NULL
...
...
sql/slave.cc
View file @
1da2b9b4
...
@@ -2753,7 +2753,7 @@ int st_relay_log_info::wait_for_pos(THD* thd, String* log_name,
...
@@ -2753,7 +2753,7 @@ int st_relay_log_info::wait_for_pos(THD* thd, String* log_name,
else
else
pthread_cond_wait
(
&
data_cond
,
&
data_lock
);
pthread_cond_wait
(
&
data_cond
,
&
data_lock
);
DBUG_PRINT
(
"info"
,(
"Got signal of master update or timed out"
));
DBUG_PRINT
(
"info"
,(
"Got signal of master update or timed out"
));
if
(
error
==
ETIMEDOUT
||
error
==
ETIME
)
if
(
error
==
ETIMEDOUT
)
{
{
error
=
-
1
;
error
=
-
1
;
break
;
break
;
...
...
sql/sql_insert.cc
View file @
1da2b9b4
...
@@ -1730,7 +1730,7 @@ extern "C" pthread_handler_decl(handle_delayed_insert,arg)
...
@@ -1730,7 +1730,7 @@ extern "C" pthread_handler_decl(handle_delayed_insert,arg)
#endif
#endif
if
(
thd
->
killed
||
di
->
status
)
if
(
thd
->
killed
||
di
->
status
)
break
;
break
;
if
(
error
==
ETIME
||
error
==
ETIME
DOUT
)
if
(
error
==
ETIMEDOUT
)
{
{
thd
->
killed
=
THD
::
KILL_CONNECTION
;
thd
->
killed
=
THD
::
KILL_CONNECTION
;
break
;
break
;
...
...
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