Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 414a5ab

Browse files
committed
bug #38453 [lock] Mark Key unserializable whith PgsqlStore (jderusse)
This PR was merged into the 5.x branch. Discussion ---------- [lock] Mark Key unserializable whith PgsqlStore | Q | A | ------------- | --- | Branch? | 5.x | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | / | License | MIT | Doc PR | / Marks key unserializable #38395 with the new PgsqlStore #38346 Commits ------- eb934e9 Mark Key unserializable whith PgsqlStore
2 parents 61dcfe3 + eb934e9 commit 414a5ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Component/Lock/Store/PostgreSqlStore.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ public function save(Key $key)
8787

8888
// Check if lock is acquired
8989
if (true === (\is_object($result) ? $result->fetchOne() : $stmt->fetchColumn())) {
90+
$key->markUnserializable();
9091
// release sharedLock in case of promotion
9192
$this->unlockShared($key);
9293

@@ -109,6 +110,7 @@ public function saveRead(Key $key)
109110

110111
// Check if lock is acquired
111112
if (true === (\is_object($result) ? $result->fetchOne() : $stmt->fetchColumn())) {
113+
$key->markUnserializable();
112114
// release lock in case of demotion
113115
$this->unlock($key);
114116

0 commit comments

Comments
 (0)