From: rettenbe Date: Wed, 16 Jan 2008 14:52:52 +0000 (+0000) Subject: completion of bugfix: sorting of DB output X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=db9199d3c8d9e06b68620922d010df4eaaad2d3d;p=gosa.git completion of bugfix: sorting of DB output git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8400 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index 42a9703a7..1dd691578 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -1017,7 +1017,7 @@ while(1) { while( my ($id, $hit) = each %{$res} ) { - my $jobdb_id = $hit->{ROWID}; + my $jobdb_id = $hit->{id}; my $macaddress = $hit->{macaddress}; my $job_msg_hash = &transform_msg2hash($hit->{xmlmessage}); my $out_msg_hash = $job_msg_hash; @@ -1030,7 +1030,7 @@ while(1) { &daemon_log("xml message: $hit->{xmlmessage}", 5); my $update_hash = { table=>$job_queue_table_name, update=> [ { status=>['error'], result=>["no host found for mac address"] } ], - where=> [ { ROWID=>[$jobdb_id] } ], + where=> [ { id=>[$jobdb_id] } ], }; my $res = $job_db->update_dbentry($update_hash); @@ -1057,9 +1057,6 @@ while(1) { my $error = &send_msg_hash2address($out_msg_hash, "$gosa_ip:$gosa_port", $gosa_passwd); -####################### -# TODO exchange ROWID with jobid, insert column jobid in table jobs befor - if ($error == 0) { my $sql = "UPDATE '$job_queue_table_name' SET status='processing', targettag='$target' WHERE id='$jobdb_id'"; my $res = $job_db->exec_statement($sql);