Skip to content
Snippets Groups Projects
Commit acb94446 authored by Steven Murray's avatar Steven Murray
Browse files

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.
parent 6683c144
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment