mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/11515] Extra check after acquiring locks.
Add additional check to flock.php and db.php to ensure lock aquiring. PHPBB3-11515
This commit is contained in:
@@ -110,7 +110,16 @@ class db
|
||||
// process we failed to acquire the lock.
|
||||
$this->locked = $this->config->set_atomic($this->config_name, $lock_value, $this->unique_id, false);
|
||||
|
||||
return $this->locked;
|
||||
if ($this->locked == true)
|
||||
{
|
||||
if ($this->config->ensure_lock($this->config_name, $this->unique_id))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
|
||||
return $this->locked;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user