debug-race-condition.diff

Helmut Hummel, 2014-03-21 11:04

Download (3.6 KB)

View differences:

typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php
10 10
 *                                                                        *
11 11
 * The TYPO3 project - inspiring people to share!                         *
12 12
 *                                                                        */
13
use TYPO3\CMS\Core\Core\Bootstrap;
14

  
13 15
/**
14 16
 * A caching backend which stores cache entries in files, but does not support or
15 17
 * care about expiry times and tags.
......
87 89
	 * @return void
88 90
	 */
89 91
	public function setCache(\TYPO3\CMS\Core\Cache\Frontend\FrontendInterface $cache) {
92
		error_log(Bootstrap::getInstance()->getRequestId().' setCache');
90 93
		parent::setCache($cache);
91 94
		if (empty($this->temporaryCacheDirectory)) {
92 95
			// If no cache directory was given with cacheDirectory
......
192 195
	 */
193 196
	protected function createFinalCacheDirectory($finalCacheDirectory) {
194 197
		try {
198
			error_log(Bootstrap::getInstance()->getRequestId() . ' create ' . $finalCacheDirectory);
195 199
			\TYPO3\CMS\Core\Utility\GeneralUtility::mkdir_deep($finalCacheDirectory);
196 200
		} catch (\RuntimeException $e) {
197 201
			throw new \TYPO3\CMS\Core\Cache\Exception('The directory "' . $finalCacheDirectory . '" can not be created.', 1303669848, $e);
typo3/sysext/core/Classes/Error/ErrorHandler.php
23 23
 *
24 24
 *  This copyright notice MUST APPEAR in all copies of the script!
25 25
 ***************************************************************/
26
use TYPO3\CMS\Core\Core\Bootstrap;
27

  
26 28
/**
27 29
 * Global error handler for TYPO3
28 30
 *
......
105 107
				require_once PATH_site . 'typo3/sysext/core/Classes/Exception.php';
106 108
				require_once PATH_site . 'typo3/sysext/core/Classes/Error/Exception.php';
107 109
			}
110
			error_log(Bootstrap::getInstance()->getRequestId() . ' exception ');
108 111
			throw new \TYPO3\CMS\Core\Error\Exception($message, 1);
109 112
		} else {
110 113
			switch ($errorLevel) {
typo3/sysext/core/Classes/Utility/GeneralUtility.php
26 26
 *
27 27
 *  This copyright notice MUST APPEAR in all copies of the script!
28 28
 ***************************************************************/
29
use TYPO3\CMS\Core\Core\Bootstrap;
30

  
29 31
/**
30 32
 * The legendary "t3lib_div" class - Miscellaneous functions for general purpose.
31 33
 * Most of the functions do not relate specifically to TYPO3
......
2856 2858
	 */
2857 2859
	static public function flushDirectory($directory, $keepOriginalDirectory = FALSE) {
2858 2860
		$result = FALSE;
2859

  
2861
error_log(Bootstrap::getInstance()->getRequestId() . ' flush '.$directory);
2860 2862
		if (is_dir($directory)) {
2861 2863
			$temporaryDirectory = rtrim($directory, '/') . '.' . uniqid('remove') . '/';
2862 2864
			if (rename($directory, $temporaryDirectory)) {