fix for bug 2867833: wait database initialization in xcatd

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4242 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2009-09-27 03:02:46 +00:00
parent 32477c0b6a
commit f38e2e552f

View File

@ -587,6 +587,10 @@ sub new
$self->{dbh}->do($str);
}
} else { #generic DBI
if (!$self->{dbh})
{
return undef;
}
my $tbexistq = $self->{dbh}->table_info('','',$self->{tabname},'TABLE');
my $found = 0;
while (my $data = $tbexistq->fetchrow_hashref) {