Changeset 7777 for trunk/MagicSoft/Mars/datacenter/macros/checkfileavail.C
- Timestamp:
- 07/05/06 11:41:13 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/checkfileavail.C
r7528 r7777 77 77 } 78 78 79 TSQLRow *row=0; 80 while ((row = res->Next())) 81 { 82 // TString entry=(*row)[0]; 83 // if (entry=="1970-01-01 00:00:00") 84 // return ""; 85 return (*row)[0]; 86 } 79 TString rc = (*row)[0]; 87 80 88 return ""; 81 delete res; 82 83 return rc; 89 84 } 90 85 … … 138 133 cout << "run#: " << runno << endl; 139 134 //if one value returns "" (i.e. column is NULL), 0 is returned 140 if (GetStatus(serv, rc, runno, "RunProcessStatus", "fCCFileAvail") ==""141 || GetStatus(serv, rc, runno, "RunProcessStatus", "fCaCoFileAvail") ==""142 || GetStatus(serv, rc, runno, "RunProcessStatus", "fCaCoFileFound") ==""143 || GetStatus(serv, rc, runno, "RunProcessStatus", "fTimingCorrection") ==""135 if (GetStatus(serv, rc, runno, "RunProcessStatus", "fCCFileAvail").IsNull() 136 || GetStatus(serv, rc, runno, "RunProcessStatus", "fCaCoFileAvail").IsNull() 137 || GetStatus(serv, rc, runno, "RunProcessStatus", "fCaCoFileFound").IsNull() 138 || GetStatus(serv, rc, runno, "RunProcessStatus", "fTimingCorrection").IsNull() 144 139 // || GetStatus(serv, rc, runno, "RunProcessStatus", "fTimingCorrection")=="1970-01-01 00:00:00" 145 || GetStatus(serv, rc, runno, "RunProcessStatus", "fRawFileAvail") =="")140 || GetStatus(serv, rc, runno, "RunProcessStatus", "fRawFileAvail").IsNull()) 146 141 return 2; 147 142 }
Note:
See TracChangeset
for help on using the changeset viewer.