void transaction::commit() { check_current_transaction(); try { v_commit(); } // LCOV_EXCL_START catch( ... ) { v_reset(); throw; } // LCOV_EXCL_STOP v_reset(); }
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); } }