Commit 5f27af03 authored by Shashi Guruprasad's avatar Shashi Guruprasad

nseconfigs table is used both as a virtual table and a physical table.

When xmlconvert is called during nseparse, we need to clean up the
physical part so that rows for the new mapping can be added. I have
added this. While I say that there is a physical part, essentially
the vname column has the same value as the vname column in the
reserved table for the PC such as 'simhost-0', 'simhost-1' etc.
parent 4e2d7936
......@@ -276,6 +276,19 @@ sub readXML($$$) {
DBQueryFatal("delete from $table ".
"where eid='$eid' and pid='$pid'")
if (!$impotent);
} else {
# The nseconfigs table is special. During a
# simparse, we need delete all rows for the
# experiment except the one with the vname
# 'fullsim'. This row is essentially virtual
# info and does not change across swapins
# where as the other rows depend on the
# mapping
if ( !$impotent && ($table eq "nseconfigs") ) {
DBQueryFatal("delete from $table ".
"where eid='$eid' and pid='$pid' and ".
"vname!='fullsim'")
}
}
next
if (!defined($virtual_tables{$table}));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment