[interchange-cvs] interchange - heins modified lib/Vend/Data.pm

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Wed Mar 3 19:17:37 EST 2004


User:      heins
Date:      2004-03-04 00:17:37 GMT
Modified:  lib/Vend Data.pm
Log:
* Prevent spurious Database error when in PreFork mode. While I am not
  certain, I think it is caused by the fake "mv_null" database that
  Vend::Table::Editor uses.

Revision  Changes    Path
2.35      +6 -1      interchange/lib/Vend/Data.pm


rev 2.35, prev_rev 2.34
Index: Data.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Data.pm,v
retrieving revision 2.34
retrieving revision 2.35
diff -u -r2.34 -r2.35
--- Data.pm	12 Feb 2004 18:22:08 -0000	2.34
+++ Data.pm	4 Mar 2004 00:17:37 -0000	2.35
@@ -1,6 +1,6 @@
 # Vend::Data - Interchange databases
 #
-# $Id: Data.pm,v 2.34 2004/02/12 18:22:08 mheins Exp $
+# $Id: Data.pm,v 2.35 2004/03/04 00:17:37 mheins Exp $
 # 
 # Copyright (C) 2002-2003 Interchange Development Group
 # Copyright (C) 1996-2002 Red Hat, Inc.
@@ -748,8 +748,13 @@
 			next;
 		}
 		my $class = $db_config{$data->{Class}}->{Class};
+		eval {
 		$Vend::Database{$name} =
 				new $class ($data);
+		};
+		if($@) {
+			logGlobal("Error creating dummy database for $name: $@");
+		}
 	}
 	update_productbase();
 }








More information about the interchange-cvs mailing list