You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!$this->strategy->canBeMet($failureCount, $storesCount)) {
114
+
thrownewNotSupportedException(sprintf('The store "%s" does not contains enough compatible store to met the requirements.', get_debug_type($this)));
115
+
}
116
+
117
+
foreach ($this->sharedLockStoresas$store) {
118
+
try {
119
+
$store->saveRead($key);
120
+
++$successCount;
121
+
} catch (\Exception$e) {
122
+
$this->logger->warning('One store failed to save the "{resource}" lock.', ['resource' => $key, 'store' => $store, 'exception' => $e]);
123
+
++$failureCount;
124
+
}
125
+
126
+
if (!$this->strategy->canBeMet($failureCount, $storesCount)) {
127
+
break;
128
+
}
129
+
}
130
+
131
+
$this->checkNotExpired($key);
132
+
133
+
if ($this->strategy->isMet($successCount, $storesCount)) {
134
+
return;
135
+
}
136
+
137
+
$this->logger->warning('Failed to store the "{resource}" lock. Quorum has not been met.', ['resource' => $key, 'success' => $successCount, 'failure' => $failureCount]);
0 commit comments