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
130fb4dd
Commit
130fb4dd
authored
Apr 15, 2008
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#22320 workaround (second attempt)
parent
d12c8374
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
storage/maria/unittest/ma_pagecache_consist.c
storage/maria/unittest/ma_pagecache_consist.c
+10
-0
No files found.
storage/maria/unittest/ma_pagecache_consist.c
View file @
130fb4dd
...
@@ -470,8 +470,18 @@ int main(int argc __attribute__((unused)),
...
@@ -470,8 +470,18 @@ int main(int argc __attribute__((unused)),
pthread_mutex_lock
(
&
LOCK_thread_count
);
pthread_mutex_lock
(
&
LOCK_thread_count
);
while
(
thread_count
)
while
(
thread_count
)
{
{
/*
workaround until we know why it crashes randomly on some machine
(BUG#22320).
*/
sleep
(
1
);
if
((
error
=
pthread_cond_wait
(
&
COND_thread_count
,
&
LOCK_thread_count
)))
if
((
error
=
pthread_cond_wait
(
&
COND_thread_count
,
&
LOCK_thread_count
)))
diag
(
"COND_thread_count: %d from pthread_cond_wait
\n
"
,
error
);
diag
(
"COND_thread_count: %d from pthread_cond_wait
\n
"
,
error
);
/*
workaround until we know why it crashes randomly on some machine
(BUG#22320).
*/
sleep
(
1
);
}
}
pthread_mutex_unlock
(
&
LOCK_thread_count
);
pthread_mutex_unlock
(
&
LOCK_thread_count
);
DBUG_PRINT
(
"info"
,
(
"thread ended"
));
DBUG_PRINT
(
"info"
,
(
"thread ended"
));
...
...
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