Code

bugfixes the function watch_for_new_jobs; now, only waiting jobs hosted by the local...
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 16 Mar 2009 17:17:19 +0000 (17:17 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 16 Mar 2009 17:17:19 +0000 (17:17 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13547 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/gosa-si-server

index a6daf3fe11c0202a8767961dbb0858fcc11a3bc2..932f2878fbe313108db5e418d02caab8ae9b14f4 100755 (executable)
@@ -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;
 }