예제 #1
0
 void transaction::commit()
 {
    check_current_transaction();
    try {
       v_commit();
    }
    // LCOV_EXCL_START
    catch( ... ) {
       v_reset();
       throw;
    }
    // LCOV_EXCL_STOP
    v_reset();
 }
예제 #2
0
파일: main.cpp 프로젝트: rumca-js/workbins
void Commit::perform()
{
   QString dbname;
   getVar("db_name", dbname);
   FileErrorList errors;

   for(int i=0; i<files.count(); i++)
   {
      if (!v_commit(files[i], dbname, errors))
      {
      }
   }
   for(int j=0; j<errors.count(); j++)
   {
      QOSystem::QBox(errors[j].name+QString(':')+errors[j].error);
   }
}