cvs: pear-core /PEAR DependencyDB.php

From: Date: Wed, 20 Oct 2004 02:12:37 +0000
Subject: cvs: pear-core /PEAR DependencyDB.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-1077@lists.php.net to get a copy of this message
cellog Tue Oct 19 22:12:37 2004 EDT Modified files: /pear-core/PEAR DependencyDB.php Log: talk about dumb - use the same lockfile for the DependencyDB as the registry, and you get race conditions that kill the whole thing. http://cvs.php.net/diff.php/pear-core/PEAR/DependencyDB.php?r1=1.9&r2=1.10&ty=u Index: pear-core/PEAR/DependencyDB.php diff -u pear-core/PEAR/DependencyDB.php:1.9 pear-core/PEAR/DependencyDB.php:1.10 --- pear-core/PEAR/DependencyDB.php:1.9 Tue Oct 19 18:27:55 2004 +++ pear-core/PEAR/DependencyDB.php Tue Oct 19 22:12:36 2004 @@ -18,7 +18,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: DependencyDB.php,v 1.9 2004/10/19 22:27:55 cellog Exp $ +// $Id: DependencyDB.php,v 1.10 2004/10/20 02:12:36 cellog Exp $ require_once 'PEAR.php'; require_once 'PEAR/Registry.php'; @@ -63,13 +63,13 @@ $this->_config = &$config; } $this->_registry = &$config->getRegistry(); - $this->lockfile = $this->_registry->lockfile; if (!$depdb) { $this->_depdb = $config->get('php_dir', null, 'pear.php.net') . DIRECTORY_SEPARATOR . '.depdb'; } else { $this->_depdb = $depdb; } + $this->lockfile = dirname($this->_depdb) . '.depdblock'; } // }}} // {{{ assertDepsDB()

« previous php.pear.core (#1077) next »