[LON-CAPA-cvs] cvs: loncom /metadata_database searchcat.pl

matthew lon-capa-cvs@mail.lon-capa.org
Tue, 22 Jun 2004 14:16:08 -0000


matthew		Tue Jun 22 10:16:08 2004 EDT

  Modified files:              
    /loncom/metadata_database	searchcat.pl 
  Log:
  Append PID to temporary table name to prevent collisions when multiple 
  searchcat run simultaniously.
  
  
Index: loncom/metadata_database/searchcat.pl
diff -u loncom/metadata_database/searchcat.pl:1.58 loncom/metadata_database/searchcat.pl:1.59
--- loncom/metadata_database/searchcat.pl:1.58	Thu Jun 17 15:37:08 2004
+++ loncom/metadata_database/searchcat.pl	Tue Jun 22 10:16:08 2004
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # searchcat.pl "Search Catalog" batch script
 #
-# $Id: searchcat.pl,v 1.58 2004/06/17 19:37:08 www Exp $
+# $Id: searchcat.pl,v 1.59 2004/06/22 14:16:08 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -119,7 +119,7 @@
 ##
 ## Use variables for table names so we can test this routine a little easier
 my $oldname = 'metadata';
-my $newname = 'newmetadata';
+my $newname = 'newmetadata'.$$; # append pid to have unique temporary table
 
 #
 # Read loncapa_apache.conf and loncapa.conf