--- chewbacca/PamOffLineSW/PacketUser.cpp 2010/02/02 15:26:09 1.16 +++ chewbacca/PamOffLineSW/PacketUser.cpp 2010/02/03 14:11:38 1.17 @@ -1,5 +1,5 @@ //============================================================================ -// $Id: PacketUser.cpp,v 1.15 2010/01/15 14:31:17 mocchiut Exp $ +// $Id: PacketUser.cpp,v 1.16 2010/02/02 15:26:09 mocchiut Exp $ // Description : //============================================================================ #include "PacketUser.h" @@ -457,7 +457,7 @@ //if(!table){table=Table_GL_RESURS_OFFSET} if (!single_connection) { - OpenDBConnection(table);//Nota qui ho deciso di lockare solo questa tabella e non tutte + OpenDBConnection(NULL);// no, locak tutto Nota qui ho deciso di lockare solo questa tabella e non tutte } UInt_t t0 = 0;//toffset @@ -632,7 +632,8 @@ msg = err.str(); mainLogUtil->logInfo(msg); - TString qu = Form("select ID_N from ROOT_TABLE_BAD order by INSERT_TIME desc limit 1;"); + // TString qu = Form("select ID_N from ROOT_TABLE_BAD order by INSERT_TIME desc limit 1;"); // <========================= + TString qu = Form("select ID_N from ROOT_TABLE_BAD where FILE_NAME='%s' and PKT_NUMBER_INIT=%i and INSERTED_BY='%s';",filename,pkt_number_init,tag_value); // <========================= TSQLResult *result = sqlServer->Query(qu.Data()); TSQLRow *row = result->Next(); Int_t eid = -1; @@ -831,7 +832,7 @@ }//pRun } - + void PacketUser::CleanDisk(){ if ( !candelete ) return; @@ -1387,11 +1388,11 @@ TSQLResult* res = NULL; stringstream oss; oss.str(""); - if (!tableTobeLocked) - oss << "lock table " << Table_ROOT_Good << " write, " << Table_ROOT_Bad << " write, " << Table_GL_RESURS_OFFSET - << " write, " << Table_ROOT_Merging << " write;"; - else - oss << "lock table " << tableTobeLocked << " write; "; + // if (!tableTobeLocked) + oss << "lock table " << Table_ROOT_Good << " write, " << Table_ROOT_Bad << " write, " << Table_GL_RESURS_OFFSET + << " write, " << Table_ROOT_Merging << " write;"; + // else + // oss << "lock table " << tableTobeLocked << " write; "; string msg = oss.str(); mainLogUtil->logAll(msg);