[LON-CAPA-cvs] cvs: loncom(memcached_2_0_early) /lonnet/perl lonnet.pm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 15 Feb 2005 17:13:55 -0000


albertel		Tue Feb 15 12:13:55 2005 EDT

  Modified files:              (Branch: memcached_2_0_early)
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - need to convert __undef__ into undef for the remembered hash
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.598.2.1 loncom/lonnet/perl/lonnet.pm:1.598.2.2
--- loncom/lonnet/perl/lonnet.pm:1.598.2.1	Sun Feb 13 23:59:53 2005
+++ loncom/lonnet/perl/lonnet.pm	Tue Feb 15 12:13:54 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.598.2.1 2005/02/14 04:59:53 albertel Exp $
+# $Id: lonnet.pm,v 1.598.2.2 2005/02/15 17:13:54 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -866,11 +866,11 @@
 	if ($debug) { &Apache::lonnet::logthis("getting $id is not defined"); }
 	return (undef,undef);
     }
-    &make_room($id,$value,$debug);
     if ($value eq '__undef__') {
 	if ($debug) { &Apache::lonnet::logthis("getting $id is __undef__"); }
-	return (undef,1);
+	$value=undef;
     }
+    &make_room($id,$value,$debug);
     if ($debug) { &Apache::lonnet::logthis("getting $id is $value"); }
     return ($value,1);
 }