Commit 229dd427 authored by Steven Murray's avatar Steven Murray
Browse files

Added a couple of const qualifiers for the benefit of the compiler and developers

parent 6713a142
......@@ -6551,7 +6551,7 @@ ArchiveFileItor RdbmsCatalogue::getArchiveFilesItor(const TapeFileSearchCriteria
try {
// Create a connection to populate the temporary table (specialised by database type)
auto conn = m_archiveFileListingConnPool.getConn();
auto tempDiskFxidsTableName = createAndPopulateTempTableFxid(conn, searchCriteria);
const auto tempDiskFxidsTableName = createAndPopulateTempTableFxid(conn, searchCriteria);
// Pass ownership of the connection to the Iterator object
auto impl = new RdbmsCatalogueGetArchiveFilesItor(m_log, std::move(conn), searchCriteria, tempDiskFxidsTableName);
return ArchiveFileItor(impl);
......@@ -6748,7 +6748,7 @@ common::dataStructures::ArchiveFileSummary RdbmsCatalogue::getTapeFileSummary(
addedAWhereConstraint = true;
}
if(searchCriteria.diskFileIds) {
auto tempDiskFxidsTableName = createAndPopulateTempTableFxid(conn, searchCriteria);
const auto tempDiskFxidsTableName = createAndPopulateTempTableFxid(conn, searchCriteria);
if(addedAWhereConstraint) sql += " AND ";
sql += "ARCHIVE_FILE.DISK_FILE_ID IN (SELECT DISK_FILE_ID FROM " + tempDiskFxidsTableName + ")";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment