Index: trunk/ippToPsps/jython/dvo.py
===================================================================
--- trunk/ippToPsps/jython/dvo.py	(revision 35181)
+++ trunk/ippToPsps/jython/dvo.py	(revision 35183)
@@ -587,9 +587,17 @@
         # blow away existing dvoDetection table
 
-        # clear the 'ingested' field for all boxes
-        # XXX oops: this causes problems for multiple loaders...
-        # set/clear should be using the HOST id as the value in the table.
-        # self.ippToPspsDb.clearIngestedBoxes()
+        # clear the 'ingested' field for all boxes owned by this host
+        self.ippToPspsDb.clearIngestedBoxes(self.scratchDb.dbHost)
         
+        print "*******************************************************************************"
+        self.logger.warning("about to delete detection table and re-ingest; is this correct?")
+        response = raw_input("(y/n) ")
+        if response != "y":
+            raise
+        self.logger.warning("Are you ABSOLUTELY sure you want to do this?")
+        response = raw_input("(y/n) ")
+        if response != "y":
+            raise
+
         # drop detections table
         self.logger.infoPair("Dropping table", self.scratchDb.dvoDetectionTable)
@@ -644,5 +652,5 @@
         ## dvopsps can take a very long time. try 2 or 3 times to re-establish communication with the db before proceeding?
 
-        self.ippToPspsDb.setIngestedBox(boxId)
+        self.ippToPspsDb.setIngestedBox(boxId, self.scratchDb.dbHost)
 
         # add fileID column
