Changeset 2654


Ignore:
Timestamp:
Apr 18, 2012, 5:44:10 PM (9 years ago)
Author:
goya
Message:

solution la plus stable aux soucis d'index après plusieurs mois de tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/lib/model/solr/SolrCommands.class.php

    r2649 r2654  
    4646
    4747  private function protect() {
    48     if (! $this->semaphore) {
    49       $this->semaphore = sem_get(self::getSemId());
    50     }
    51     sem_acquire($this->semaphore, 1);
     48#    if (! $this->semaphore) {
     49      $this->semaphore = sem_get(self::getSemId(), 1, 0666, -1);
     50#    }
     51    sem_acquire($this->semaphore);
    5252  }
    5353
Note: See TracChangeset for help on using the changeset viewer.