Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5ead575

Browse filesBrowse files
committed
Fix PDO prune not called
1 parent 432c21f commit 5ead575
Copy full SHA for 5ead575

File tree

Expand file treeCollapse file tree

1 file changed

+2
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-5
lines changed

‎src/Symfony/Component/Lock/Store/PdoStore.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Lock/Store/PdoStore.php
+2-5Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,6 @@ public function save(Key $key)
124124

125125
try {
126126
$stmt->execute();
127-
$this->checkNotExpired($key);
128-
129-
return;
130127
} catch (DBALException $e) {
131128
// the lock is already acquired. It could be us. Let's try to put off.
132129
$this->putOffExpiration($key, $this->initialTtl);
@@ -135,11 +132,11 @@ public function save(Key $key)
135132
$this->putOffExpiration($key, $this->initialTtl);
136133
}
137134

138-
$this->checkNotExpired($key);
139-
140135
if ($this->gcProbability > 0 && (1.0 === $this->gcProbability || (random_int(0, PHP_INT_MAX) / PHP_INT_MAX) <= $this->gcProbability)) {
141136
$this->prune();
142137
}
138+
139+
$this->checkNotExpired($key);
143140
}
144141

145142
/**

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.