Make sure that the SQL mutexes are specific to the current iTop instance, but still preserving the capability for the setup to detect an already running cron job with or without a valid config file.

SVN:trunk[3591]
This commit is contained in:
Denis Flaven
2015-06-12 17:00:41 +00:00
parent 7a5bbd0613
commit 1aa489890c
5 changed files with 16 additions and 6 deletions

View File

@@ -618,7 +618,7 @@ EOF
);
$oMutex = new iTopMutex(
'cron.'.$this->oWizard->GetParameter('db_name', '').'_'.$this->oWizard->GetParameter('db_prefix', ''),
'cron'.$this->oWizard->GetParameter('db_name', '').$this->oWizard->GetParameter('db_prefix', ''),
$this->oWizard->GetParameter('db_server', ''),
$this->oWizard->GetParameter('db_user', ''),
$this->oWizard->GetParameter('db_pwd', '')