Mark Key unserializable whith PgsqlStore

This commit is contained in:
Jérémy Derussé 2020-10-07 10:29:02 +02:00
parent 494ef421c5
commit eb934e9015
No known key found for this signature in database
GPG Key ID: 2083FA5758C473D2

View File

@ -87,6 +87,7 @@ class PostgreSqlStore implements BlockingSharedLockStoreInterface, BlockingStore
// Check if lock is acquired
if (true === (\is_object($result) ? $result->fetchOne() : $stmt->fetchColumn())) {
$key->markUnserializable();
// release sharedLock in case of promotion
$this->unlockShared($key);
@ -109,6 +110,7 @@ class PostgreSqlStore implements BlockingSharedLockStoreInterface, BlockingStore
// Check if lock is acquired
if (true === (\is_object($result) ? $result->fetchOne() : $stmt->fetchColumn())) {
$key->markUnserializable();
// release lock in case of demotion
$this->unlock($key);