Code

Create packages list when server db is ready, not before.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 12 Mar 2008 09:39:58 +0000 (09:39 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 12 Mar 2008 09:39:58 +0000 (09:39 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9701 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/gosa-si-server

index 0e2f33986f344973d9811dd8fb1fe53234a94118..2da5c1e563073954dddf3582609a32fc15fc2c21 100755 (executable)
@@ -937,7 +937,6 @@ sub _start {
     &trigger_db_loop($kernel);
        $kernel->yield('create_fai_server_db', $fai_server_tn );
        $kernel->yield('create_fai_release_db', $fai_release_tn );
-       $kernel->yield('create_packages_list_db');
 }
 
 sub next_task {
@@ -1449,8 +1448,13 @@ sub create_fai_server_db {
                   }
                daemon_log("INFO: create_fai_server_db: finished", 5);
        }       
+
+       # Now we can create the packages list
+       $kernel->yield('create_packages_list_db');
+
        return $result;
 }
+
 sub run_create_fai_server_db {
     my ($session, $heap, $table_name) = @_[SESSION, HEAP, ARG0];
     my $task = POE::Wheel::Run->new(