[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 14 Oct 2005 20:16:48 -0000
albertel Fri Oct 14 16:16:48 2005 EDT
Modified files:
/loncom/interface loncommon.pm
Log:
- with a .page you could have a situation in which several different cgi subrequests are generated in under a second and the seperate sub requests are generated by 2 different children that just ahppen to have the same uniq (most likley in a loading situation where both children are likely to have a uniq of 1)
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.279 loncom/interface/loncommon.pm:1.280
--- loncom/interface/loncommon.pm:1.279 Thu Oct 13 18:37:40 2005
+++ loncom/interface/loncommon.pm Fri Oct 14 16:16:46 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.279 2005/10/13 22:37:40 raeburn Exp $
+# $Id: loncommon.pm,v 1.280 2005/10/14 20:16:46 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -3716,7 +3716,7 @@
my $uniq=0;
sub get_cgi_id {
$uniq=($uniq+1)%100000;
- return (time.'_'.$uniq);
+ return (time.'_'.$$.'_'.$uniq);
}
############################################################