[Swift-commit] r6916 - SwiftApps/Swift-MapRed/swift-t-simple/put-get

wozniak at ci.uchicago.edu wozniak at ci.uchicago.edu
Wed Aug 21 15:27:38 CDT 2013


Author: wozniak
Date: 2013-08-21 15:27:38 -0500 (Wed, 21 Aug 2013)
New Revision: 6916

Modified:
   SwiftApps/Swift-MapRed/swift-t-simple/put-get/test-chirp.swift
Log:
Workaround for #529 - works


Modified: SwiftApps/Swift-MapRed/swift-t-simple/put-get/test-chirp.swift
===================================================================
--- SwiftApps/Swift-MapRed/swift-t-simple/put-get/test-chirp.swift	2013-08-21 20:17:40 UTC (rev 6915)
+++ SwiftApps/Swift-MapRed/swift-t-simple/put-get/test-chirp.swift	2013-08-21 20:27:38 UTC (rev 6916)
@@ -25,19 +25,10 @@
 
   string filenames[][];
 
-  location L[];
   foreach host,i in hosts
   {
     if (host != "")
     {
-      L[i] = hostmap_one_worker(host);
-    }
-  }
-
-  foreach host,i in hosts
-  {
-    if (host != "")
-    {
       printf("host: %s", host);
       file t<sprintf("contents-%s.txt",host)> = list_files(host, port);
       string s = read(t);
@@ -52,7 +43,8 @@
           printf("host: %s file: %s %s", host, f, g);
           file u_in = input_url(f);
           file u_out<g>;
-          u_out = @location=L[i] job(u_in);
+          location L = hostmap_one_worker(host);
+          u_out = @location=L job(u_in);
         }
       }
     }




More information about the Swift-commit mailing list