diff options
| author | Vishal Pandey <vishpandey2014@gmail.com> | 2017-03-14 00:57:28 +0530 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2019-05-08 21:48:52 +0200 |
| commit | 26acd8a5e43f6fc697728f04f4966b26bbd05230 (patch) | |
| tree | 3ed10501036c2b527a1222a3ac72b4f7cf872682 /phpBB/phpbb/lock/db.php | |
| parent | 4282cf459ec1246ca5a92d4b82ae673695ff382e (diff) | |
| download | forums-26acd8a5e43f6fc697728f04f4966b26bbd05230.tar forums-26acd8a5e43f6fc697728f04f4966b26bbd05230.tar.gz forums-26acd8a5e43f6fc697728f04f4966b26bbd05230.tar.bz2 forums-26acd8a5e43f6fc697728f04f4966b26bbd05230.tar.xz forums-26acd8a5e43f6fc697728f04f4966b26bbd05230.zip | |
[ticket/11515] Extra check after acquiring locks.
Add additional check to flock.php and db.php to ensure lock aquiring.
PHPBB3-11515
Diffstat (limited to 'phpBB/phpbb/lock/db.php')
| -rw-r--r-- | phpBB/phpbb/lock/db.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/phpBB/phpbb/lock/db.php b/phpBB/phpbb/lock/db.php index 85ba9a7aa3..7765619422 100644 --- a/phpBB/phpbb/lock/db.php +++ b/phpBB/phpbb/lock/db.php @@ -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; + } } /** |
