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
bd47ccfc
Commit
bd47ccfc
authored
Jan 18, 2006
by
osku
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not reset cell->wait_object to NULL when a cell in sync array is freed
since this can lead to problems.
parent
c2083023
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
sync/sync0arr.c
sync/sync0arr.c
+3
-5
No files found.
sync/sync0arr.c
View file @
bd47ccfc
...
@@ -54,9 +54,9 @@ struct sync_cell_struct {
...
@@ -54,9 +54,9 @@ struct sync_cell_struct {
enum
{
SC_FREE
,
SC_RESERVED
,
SC_WAKING_UP
}
state
;
enum
{
SC_FREE
,
SC_RESERVED
,
SC_WAKING_UP
}
state
;
void
*
wait_object
;
/* pointer to the object the
void
*
wait_object
;
/* pointer to the object the
thread is waiting for;
like state,
thread is waiting for;
this is not
this can change from non-NULL to
reseted to NULL when a cell is
NULL without any mutex protection
*/
freed.
*/
mutex_t
*
old_wait_mutex
;
/* the latest wait mutex in cell */
mutex_t
*
old_wait_mutex
;
/* the latest wait mutex in cell */
rw_lock_t
*
old_wait_rw_lock
;
/* the latest wait rw-lock in cell */
rw_lock_t
*
old_wait_rw_lock
;
/* the latest wait rw-lock in cell */
...
@@ -413,7 +413,6 @@ sync_array_free_cell(
...
@@ -413,7 +413,6 @@ sync_array_free_cell(
ut_a
(
cell
->
wait_object
!=
NULL
);
ut_a
(
cell
->
wait_object
!=
NULL
);
cell
->
state
=
SC_FREE
;
cell
->
state
=
SC_FREE
;
cell
->
wait_object
=
NULL
;
}
}
/**********************************************************************
/**********************************************************************
...
@@ -443,7 +442,6 @@ sync_array_free_cell_protected(
...
@@ -443,7 +442,6 @@ sync_array_free_cell_protected(
}
}
cell
->
state
=
SC_FREE
;
cell
->
state
=
SC_FREE
;
cell
->
wait_object
=
NULL
;
sync_array_exit
(
arr
);
sync_array_exit
(
arr
);
}
}
...
...
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