summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3ae0bab)
raw | patch | inline | side by side (parent: 3ae0bab)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 16 Apr 2008 11:53:48 +0000 (11:53 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 16 Apr 2008 11:53:48 +0000 (11:53 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10503 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/gosa-si-server | patch | blob | history | |
gosa-si/modules/DBsqlite.pm | patch | blob | history |
diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server
index 51980e1ba18c43f80bd7841e9f5264e72ea2beee..554f0915c409c34ccba60756424d7cf25f2c97b4 100755 (executable)
--- a/gosa-si/gosa-si-server
+++ b/gosa-si/gosa-si-server
# TODO: Find a way to post the 'create_packages_list_db' event
if(not defined($dont_create_packages_list)) {
- #&create_packages_list_db;
-
- # it should not be possible to trigger a recreation of packages_list_db
- # while packages_list_db is under construction, so set flag packages_list_under_construction
- # which is tested befor recreation can be started
&create_packages_list_db(undef, undef, $session_id);
}
}
my @sql_list;
my $timestamp= &get_time();
foreach my $ou (@{$mesg->{entries}}) {
- my $tmp_classes= resolve_fai_classes($ou->dn, $ldap_handle);
+ my $tmp_classes= resolve_fai_classes($ou->dn, $ldap_handle, $session_id);
if(defined($tmp_classes) && ref($tmp_classes) eq 'HASH') {
my @tmp_array=get_fai_release_entries($tmp_classes);
if(@tmp_array) {
}
sub resolve_fai_classes {
- my ($fai_base, $ldap_handle) = @_;
+ my ($fai_base, $ldap_handle, $session_id) = @_;
+ if (not defined $session_id) { $session_id = 0; }
my $result;
my @possible_fai_classes= ("FAIscript", "FAIhook", "FAIpartitionTable", "FAItemplate", "FAIvariable", "FAIprofile", "FAIpackageList");
my $fai_filter= "(|(&(objectClass=FAIclass)(|(objectClass=".join(")(objectClass=", @possible_fai_classes).")))(objectClass=FAIbranch))";
my $fai_classes;
- daemon_log("DEBUG: Searching for FAI entries in base $fai_base",6);
+ daemon_log("$session_id DEBUG: Searching for FAI entries in base $fai_base",6);
my $mesg= $ldap_handle->search(
base => $fai_base,
scope => 'sub',
attrs => ['cn','objectClass','FAIstate'],
filter => $fai_filter,
);
- daemon_log("DEBUG: Found ".$mesg->count()." FAI entries",6);
+ daemon_log("$session_id DEBUG: Found ".$mesg->count()." FAI entries",6);
if($mesg->{'resultCode'} == 0 &&
$mesg->count != 0) {
$sources_file = &create_sources_list;
}
+ # it should not be possible to trigger a recreation of packages_list_db
+ # while packages_list_db is under construction, so set flag packages_list_under_construction
+ # which is tested befor recreation can be started
if ($packages_list_under_construction) {
- daemon_log("#########################################################################################\n\n\n\n\n");
daemon_log("$session_id WARNING: packages_list_db is right now under construction, please wait untill this process is finished", 3);
return;
} else {
index 5881ebeb66de83767ecf9a24208cdd374ce91be6..3dd3882ec020212e8c6f4b2132be145fb0eab888 100644 (file)
}
my $sql_statement = "INSERT INTO $table (".join(", ", @col_list).") VALUES ('".join("', '", @val_list)."')";
- &main::daemon_log("DEBUG: $sql_statement", 7);
my $db_res = $self->{dbh}->do($sql_statement);
if( $db_res != 1 ) {
return (4, $sql_statement);