Adds immediate migration results

This commit is contained in:
torsten committed 2026-08-18 22:12:24 +02:00
1 parent ba4121728b
commit 6a2a0667ab
2395 files changed
+357322 -2524

No files matched your search

@@ -43,7 +43,7 @@ NGL_TARGET_LINK_LIBRARIES(svcRecCommon
PRIVATE
RTI::nddscpp2
PUBLIC
Qt5::Core
Qt6::Core
ngldb
LtsUtilsCore
ddscore
@@ -102,7 +102,7 @@ CODEGEN_SQL(SRCS_exe ${xml_FILE})
NGL_ADD_SVC_ICON(SRCS_exe)
NGL_ADD_EXECUTABLE(AAR SV svcRecordingManagement ${SRCS_exe})
NGL_TARGET_LINK_LIBRARIES(svcRecordingManagement
Qt5::Core
Qt6::Core
svcRecCommon
# svcRecServer
svcCoreClient
@@ -5,6 +5,7 @@
* $Author$
*/
#include "db_writer.h"
#include <utility>
#include "db_writer_snapshot.h"
#include "rec_db.h"
@@ -119,7 +120,7 @@ void DbWriter::ddsTopicsToDatabase()
QHash<QString, qint64> minRecordSampleTimes;
// for each plugin
for (RecordReplay::RecordReplayPlugin *recPlugin : qAsConst(m_plugins))
for (RecordReplay::RecordReplayPlugin *recPlugin : std::as_const(m_plugins))
{
if (!recPlugin->ddsTopicsToDatabase(*m_query, minRecordSampleTimes))
{
@@ -5,6 +5,7 @@
* $Author$
*/
#include "db_writer_snapshot.h"
#include <utility>
#include "logger.h"
@@ -163,7 +164,7 @@ void DbWriterSnapshot::initSnapshot()
// Recording already initialised => read last arrays for each plugin/topic to
// get a hint where to start with indexing each topic
for (RecordReplay::RecordReplayPlugin *recPlugin : qAsConst(m_plugins))
for (RecordReplay::RecordReplayPlugin *recPlugin : std::as_const(m_plugins))
{
// get all record topics and check if there's a index for them
// if not -> check if there's a sample for this topic where we've to start indexing
@@ -227,7 +228,7 @@ void DbWriterSnapshot::writeSnapshotData()
// shortcut to avoid DBTransaction and loop over all plugins
qint64 startTime = std::numeric_limits<qint64>::max();
for(const qint64 st : qAsConst(minRecSampleTimes))
for(const qint64 st : std::as_const(minRecSampleTimes))
startTime = std::min(startTime, st);
INFO_LOG(m_logger) << "writeSnapshotData - lastSnapshotTimeToGenerateNow: " << lastSnapshotTimeToGenerateNow
<< ", minRecTime is " << startTime;
@@ -251,7 +252,7 @@ void DbWriterSnapshot::writeSnapshotData()
<< " lastSnapshotTimeToGenerateNow: " << lastSnapshotTimeToGenerateNow << " - BEGIN";
DBTransaction trans(QSqlDatabase::database(dbConnectionName()));
NSqlQuery recSnapshotQuery(QSqlDatabase::database(dbConnectionName()));
for (RecordReplay::RecordReplayPlugin *recPlugin : qAsConst(m_plugins))
for (RecordReplay::RecordReplayPlugin *recPlugin : std::as_const(m_plugins))
writeSnapshotDataPlugin(lastSnapshotTimeToGenerateNow, recSnapshotQuery, recPlugin, minRecSampleTimes);
trans.commit();