Changeset 1369 for cpc/trunk/project/lib/model/solr/SolrCommands.class.php
- Timestamp:
- Sep 12, 2010, 3:40:20 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/lib/model/solr/SolrCommands.class.php
r1366 r1369 4 4 { 5 5 public static function getFileCommands() { 6 umask(0002); 7 if (!file_exists(sfConfig::get('sf_log_dir').'/solr/')) { 8 mkdir (sfConfig::get('sf_log_dir').'/solr/'); 9 } 6 10 return sfConfig::get('sf_log_dir').'/solr/commands.log'; 7 11 } … … 48 52 $this->file = null; 49 53 } 54 if (!file_exists($this->getFileCommands())) 55 touch($this->getFileCommands()); 50 56 rename($this->getFileCommands(), $lockfile); 51 57 sem_release($this->semaphore);
Note: See TracChangeset
for help on using the changeset viewer.