summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d09e8cc)
To make debugging this easier and as a stale lock file really
represents an error in the locking mechanism the severity
being used for logging stale lockfiles should get raised.
This applies to the old locking API only.
Change-Id: I94b91d10411e60bfe944445865f5cb630e988701
Resolves: #67227
Releases: master, 6.2
Reviewed-on: http://review.typo3.org/39871
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
$maxAge = time() - ($maxExecutionTime ?: 120);
if (@filectime($this->resource) < $maxAge) {
@unlink($this->resource);
$maxAge = time() - ($maxExecutionTime ?: 120);
if (@filectime($this->resource) < $maxAge) {
@unlink($this->resource);
- $this->sysLog('Unlinking stale lockfile');
+ $this->sysLog('Unlinking stale lockfile', GeneralUtility::SYSLOG_SEVERITY_WARNING);
}
}
for ($i = 0; $i < $this->loops; $i++) {
}
}
for ($i = 0; $i < $this->loops; $i++) {
$maxAge = time() - ($maxExecutionTime ?: 120);
if (@filectime($this->resource) < $maxAge) {
@unlink($this->resource);
$maxAge = time() - ($maxExecutionTime ?: 120);
if (@filectime($this->resource) < $maxAge) {
@unlink($this->resource);
- $this->sysLog('Unlinking stale lockfile');
+ $this->sysLog('Unlinking stale lockfile', GeneralUtility::SYSLOG_SEVERITY_WARNING);
}
}
for ($i = 0; $i < $this->loops; $i++) {
}
}
for ($i = 0; $i < $this->loops; $i++) {
$maxAge = time() - ($maxExecutionTime ?: 120);
if (@filectime($this->resource) < $maxAge) {
@unlink($this->resource);
$maxAge = time() - ($maxExecutionTime ?: 120);
if (@filectime($this->resource) < $maxAge) {
@unlink($this->resource);
- $this->sysLog('Unlinking stale lockfile');
+ $this->sysLog('Unlinking stale lockfile', GeneralUtility::SYSLOG_SEVERITY_WARNING);
} else {
$result = TRUE;
}
} else {
$result = TRUE;
}