diff --git a/src/MetricAggregator.cpp b/src/MetricAggregator.cpp index 8c2c61086..e1e71280b 100644 --- a/src/MetricAggregator.cpp +++ b/src/MetricAggregator.cpp @@ -81,6 +81,9 @@ void MetricAggregator::refreshMetrics() dbStatus.insert(filename, add); } + // begin LUW -- byproduct of turning off sync (nosync) + dbaccess->connection().transaction(); + // Delete statistics for non-existant ride files QHash::iterator d; for (d = dbStatus.begin(); d != dbStatus.end(); ++d) { @@ -170,6 +173,9 @@ void MetricAggregator::refreshMetrics() out << "METRIC REFRESH ENDS: " << QDateTime::currentDateTime().toString() + "\r\n"; log.close(); + // end LUW -- now syncs DB + dbaccess->connection().commit(); + main->isclean = true; dataChanged(); // notify models/views