Commit b87d7a7c authored by Cedric CAFFY's avatar Cedric CAFFY Committed by Eric Cano
Browse files

Corrected cta-admin af ls command so that it fills the superseded vid and...

Corrected cta-admin af ls command so that it fills the superseded vid and superseded columns in the result
parent a7a61afc
......@@ -64,7 +64,10 @@ namespace {
tapeFile.creationTime = rset.columnUint64("TAPE_FILE_CREATION_TIME");
tapeFile.checksumType = archiveFile.checksumType; // Duplicated for convenience
tapeFile.checksumValue = archiveFile.checksumValue; // Duplicated for convenience
if(!rset.columnIsNull("SUPERSEDED_BY_VID") && !rset.columnIsNull("SUPERSEDED_BY_FSEQ")){
tapeFile.supersededByVid = rset.columnString("SUPERSEDED_BY_VID");
tapeFile.supersededByFSeq = rset.columnUint64("SUPERSEDED_BY_FSEQ");
}
archiveFile.tapeFiles.push_back(tapeFile);
}
......@@ -106,6 +109,8 @@ RdbmsCatalogueGetArchiveFilesItor::RdbmsCatalogueGetArchiveFilesItor(
"TAPE_FILE.COMPRESSED_SIZE_IN_BYTES AS COMPRESSED_SIZE_IN_BYTES,"
"TAPE_FILE.COPY_NB AS COPY_NB,"
"TAPE_FILE.CREATION_TIME AS TAPE_FILE_CREATION_TIME, "
"TAPE_FILE.SUPERSEDED_BY_VID AS SUPERSEDED_BY_VID, "
"TAPE_FILE.SUPERSEDED_BY_FSEQ AS SUPERSEDED_BY_FSEQ, "
"TAPE.TAPE_POOL_NAME AS TAPE_POOL_NAME "
"FROM "
"ARCHIVE_FILE "
......
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