Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
ba15b28e
Commit
ba15b28e
authored
Mar 25, 2007
by
Dries
Browse files
- Patch
#80963
by Dries et al: fixed race condition in _block_rehash().
parent
757ac966
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/block/block.module
View file @
ba15b28e
...
...
@@ -146,6 +146,8 @@ function _block_rehash() {
init_theme
();
db_lock_table
(
'blocks'
);
$result
=
db_query
(
"SELECT * FROM
{
blocks
}
WHERE theme = '%s'"
,
$theme_key
);
while
(
$old_block
=
db_fetch_object
(
$result
))
{
$old_blocks
[
$old_block
->
module
][
$old_block
->
delta
]
=
$old_block
;
...
...
@@ -185,7 +187,6 @@ function _block_rehash() {
}
}
db_lock_table
(
'blocks'
);
// Remove all blocks from table.
db_query
(
"DELETE FROM
{
blocks
}
WHERE theme = '%s'"
,
$theme_key
);
...
...
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