-
- Downloads
cta/CTA#135 cta <subcommand> ls output order
All CTA catalogue configuration entities (archive route, tape, tape pool, etc.) except for archive file and tape file are now ordered alphabetically. Archive files and tape files are ordered by archive ID and copy number. This ordering is required so that we can implement our own application level cursor over potentionally all archived files. This could be well over 4 billion files. We do not rely on database cursors as they would most fail before we have had enough time to list all archived files. If in the future we require a file listing command that orders achive files alphabeltically, then I would suggest the cta::Catalogue class implements two separate methods. The first implementation would list all files in archive ID order and would not rely on the underlying database to implement the cursor. iBasically whta we have today. The second implementation would list all files in alphabetcial order and would rely on the underlying database to achieve this.
Loading
Please register or sign in to comment