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

raeburn raeburn at source.lon-capa.org
Wed Feb 10 10:00:54 EST 2021


raeburn		Wed Feb 10 15:00:54 2021 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - For 2.11
    Backport 1.1442 (part)
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1172.2.138 loncom/lonnet/perl/lonnet.pm:1.1172.2.139
--- loncom/lonnet/perl/lonnet.pm:1.1172.2.138	Sun Feb  7 21:33:09 2021
+++ loncom/lonnet/perl/lonnet.pm	Wed Feb 10 15:00:54 2021
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1172.2.138 2021/02/07 21:33:09 raeburn Exp $
+# $Id: lonnet.pm,v 1.1172.2.139 2021/02/10 15:00:54 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1898,7 +1898,13 @@
         }
     }
     if ($udom && $uhome && ($uhome ne 'no_host')) {
-        my $rep=&reply("getdom:$udom:$namespace:$items",$uhome);
+        my $rep;
+        if (grep { $_ eq $uhome } &current_machine_ids()) {
+            # domain information is hosted on this machine
+            $rep = &LONCAPA::Lond::get_dom("getdom:$udom:$namespace:$items");
+        } else {        
+            $rep=&reply("getdom:$udom:$namespace:$items",$uhome);
+        }
         my %returnhash;
         if ($rep eq '' || $rep =~ /^error: 2 /) {
             return %returnhash;




More information about the LON-CAPA-cvs mailing list