diff --git a/src/infrastructure/util/PhabricatorGlobalLock.php b/src/infrastructure/util/PhabricatorGlobalLock.php index 02e04e48eb..d074526f95 100644 --- a/src/infrastructure/util/PhabricatorGlobalLock.php +++ b/src/infrastructure/util/PhabricatorGlobalLock.php @@ -63,7 +63,7 @@ final class PhabricatorGlobalLock extends PhutilLock { /* -( Implementation )----------------------------------------------------- */ - protected function doLock() { + protected function doLock($wait) { $conn = $this->conn; if (!$conn) { // NOTE: Using the 'repository' database somewhat arbitrarily, mostly @@ -87,9 +87,9 @@ final class PhabricatorGlobalLock extends PhutilLock { $result = queryfx_one( $conn, - 'SELECT GET_LOCK(%s, %d)', + 'SELECT GET_LOCK(%s, %f)', 'phabricator:'.$this->lockname, - 0); + $wait); $ok = head($result); if (!$ok) {