Commit 2384f179 authored by Steven Murray's avatar Steven Murray
Browse files

RdbmsCatalogue::prepareToRetrieveXXXX methods now respect IS_DISABLED

parent 5b953435
This diff is collapsed.
......@@ -4877,8 +4877,11 @@ std::unique_ptr<common::dataStructures::ArchiveFile> RdbmsCatalogue::getArchiveF
"ARCHIVE_FILE.STORAGE_CLASS_ID = STORAGE_CLASS.STORAGE_CLASS_ID "
"INNER JOIN TAPE_FILE ON "
"ARCHIVE_FILE.ARCHIVE_FILE_ID = TAPE_FILE.ARCHIVE_FILE_ID "
"INNER JOIN TAPE ON "
"TAPE_FILE.VID = TAPE.VID "
"WHERE "
"ARCHIVE_FILE.ARCHIVE_FILE_ID = :ARCHIVE_FILE_ID "
"ARCHIVE_FILE.ARCHIVE_FILE_ID = :ARCHIVE_FILE_ID AND "
"TAPE.IS_DISABLED = 0 "
"ORDER BY "
"TAPE_FILE.CREATION_TIME ASC";
auto stmt = conn.createStmt(sql, rdbms::AutocommitMode::OFF);
......@@ -5055,9 +5058,12 @@ std::unique_ptr<common::dataStructures::ArchiveFile> RdbmsCatalogue::getArchiveF
"ARCHIVE_FILE.STORAGE_CLASS_ID = STORAGE_CLASS.STORAGE_CLASS_ID "
"INNER JOIN TAPE_FILE ON "
"ARCHIVE_FILE.ARCHIVE_FILE_ID = TAPE_FILE.ARCHIVE_FILE_ID "
"INNER JOIN TAPE ON "
"TAPE_FILE.VID = TAPE.VID "
"WHERE "
"ARCHIVE_FILE.DISK_INSTANCE_NAME = :DISK_INSTANCE_NAME AND "
"ARCHIVE_FILE.DISK_FILE_ID = :DISK_FILE_ID "
"ARCHIVE_FILE.DISK_FILE_ID = :DISK_FILE_ID AND "
"TAPE.IS_DISABLED = 0 "
"ORDER BY "
"TAPE_FILE.CREATION_TIME ASC";
auto stmt = conn.createStmt(sql, rdbms::AutocommitMode::OFF);
......
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