From: rettenbe Date: Mon, 16 Mar 2009 17:17:19 +0000 (+0000) Subject: bugfixes the function watch_for_new_jobs; now, only waiting jobs hosted by the local... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d9db080df795840d019b675af3ead184cac94c24;p=gosa.git bugfixes the function watch_for_new_jobs; now, only waiting jobs hosted by the local server are checked for new jobs git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13547 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index a6daf3fe1..932f2878f 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -1742,9 +1742,9 @@ sub watch_for_new_jobs { $watch_for_new_jobs_in_progress = 1; my ($kernel,$heap) = @_[KERNEL, HEAP]; - # check gosa job quaeue for jobs with executable timestamp + # check gosa job queue for jobs with executable timestamp my $timestamp = &get_time(); - my $sql_statement = "SELECT * FROM $job_queue_tn WHERE status='waiting' AND (CAST(timestamp AS UNSIGNED)) < $timestamp ORDER BY timestamp"; + my $sql_statement = "SELECT * FROM $job_queue_tn WHERE siserver='localhost' AND status='waiting' AND (CAST(timestamp AS UNSIGNED)) < $timestamp ORDER BY timestamp"; my $res = $job_db->exec_statement( $sql_statement ); # Merge all new jobs that would do the same actions @@ -2156,14 +2156,12 @@ sub get_ldap_handle { if (not defined $ldap_handle) { daemon_log("$session_id INFO: ldap handle for $caller_text not available"); } - daemon_log("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"); return $ldap_handle; } sub release_ldap_handle { my ($ldap_handle) = @_ ; $ldap_pool->free($ldap_handle); - daemon_log("0 INFO: ldap handle released!\n-------------------------------------------------------------------------------"); return; }