]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
preprocessor is run in a temp directory that is removed when process is finished.
authoracolla <acolla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Jul 2007 17:19:32 +0000 (17:19 +0000)
committeracolla <acolla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Jul 2007 17:19:32 +0000 (17:19 +0000)
SHUTTLE/AliShuttle.cxx

index b40aba7a9c234ea55d1b921e7b9aa53a3d0047ad..5dc3a2a47fd577fbedd1ad0327ebc37fc34b361a 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.49  2007/06/29 10:45:06  acolla
+Number of columns in MySql Shuttle logbook increased by one (HLT added)
+
 Revision 1.48  2007/06/21 13:06:19  acolla
 GetFileSources returns dummy list with 1 source if system=DCS (better than
 returning error as it was)
@@ -1404,12 +1407,24 @@ Bool_t AliShuttle::Process(AliShuttleLogbookEntry* entry)
                                
                        }
                        
+                       TString wd = gSystem->WorkingDirectory();
+                       TString tmpDir = Form("%s/%s_process",GetShuttleTempDir(),fCurrentDetector.Data());
+                       
+                       gSystem->mkdir(tmpDir.Data());
+                       gSystem->ChangeDirectory(tmpDir.Data());
+                       
                        Bool_t success = ProcessCurrentDetector();
+                       
+                       gSystem->ChangeDirectory(wd.Data());
+                       
+                       gSystem->Exec(Form("rm -rf %s",tmpDir.Data()));
+                       
                        if (success) // Preprocessor finished successfully!
                        { 
                                // Update time_processed field in FXS DB
                                if (UpdateTable() == kFALSE)
-                                       Log("SHUTTLE", Form("Process - %s: Could not update FXS databases!"));
+                                       Log("SHUTTLE", Form("Process - %s: Could not update FXS databases!", 
+                                                       fCurrentDetector.Data()));
 
                                // Transfer the data from local storage to main storage (Grid)
                                UpdateShuttleStatus(AliShuttleStatus::kStoreStarted);