[Swift-commit] r2992 - provenancedb

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Tue Jun 30 07:39:32 CDT 2009


Author: benc
Date: 2009-06-30 07:39:32 -0500 (Tue, 30 Jun 2009)
New Revision: 2992

Modified:
   provenancedb/prepare-provenance-chart
   provenancedb/prov-to-sql.sh
Log:
import arbitrary thread-identified variable scopes as processes in order
to maintain key integrity

Modified: provenancedb/prepare-provenance-chart
===================================================================
--- provenancedb/prepare-provenance-chart	2009-06-30 12:39:09 UTC (rev 2991)
+++ provenancedb/prepare-provenance-chart	2009-06-30 12:39:32 UTC (rev 2992)
@@ -45,3 +45,6 @@
 
 cat $1 | grep ' ARRAYRANGE ' | sed 's/^.* thread=\([^ ]*\).*$/\1/' > arrayrange.txt
 
+# 2009-05-18 21:19:20,295+0200 INFO  vdl:mains SCOPE thread=0-6-5-1-5
+
+cat $1 | grep ' SCOPE ' | sed 's/^.* thread=\([^ ]*\).*/\1/' > scopes.txt

Modified: provenancedb/prov-to-sql.sh
===================================================================
--- provenancedb/prov-to-sql.sh	2009-06-30 12:39:09 UTC (rev 2991)
+++ provenancedb/prov-to-sql.sh	2009-06-30 12:39:32 UTC (rev 2992)
@@ -105,6 +105,12 @@
   echo "INSERT INTO createarray_member (array_id, ix, member_id) VALUES ('$arrayid', '$index', '$memberid');" >> tmp-import.sql
 done < createarray-members.txt
 
+while read t ; do 
+  thread="${WFID}$t"
+  echo "INSERT INTO processes (id, type) VALUES ('$thread', 'scope');" >> tmp-import.sql
+  echo "INSERT INTO processes_in_workflows (process_id, workflow_id) VALUES ('$thread', '$WF');" >> tmp-import.sql
+done < scopes.txt
+
 echo Sending SQL to DB
 
 $SQLCMD < tmp-import.sql




More information about the Swift-commit mailing list