Revision 9ac201e2
b/snf-pithos-backend/pithos/backends/lib/sqlite/node.py | ||
---|---|---|
530 | 530 |
"where serial in (select max(serial) " |
531 | 531 |
"from versions " |
532 | 532 |
"where node in (%s) and mtime < ? group by node) " |
533 |
"and cluster = ?") |
|
533 |
"and cluster = ? %s")
|
|
534 | 534 |
placeholders = ','.join('?' for node in nodes) |
535 | 535 |
if not all_props: |
536 |
q = q % ("serial", placeholders) |
|
536 |
q = q % ("serial", placeholders, '')
|
|
537 | 537 |
else: |
538 |
q = q % ("serial, node, hash, size, type, source, mtime, muser, uuid, checksum, cluster", placeholders) |
|
538 |
q = q % ("serial, node, hash, size, type, source, mtime, muser, uuid, checksum, cluster", placeholders, 'order by node')
|
|
539 | 539 |
|
540 | 540 |
args = nodes |
541 | 541 |
args.extend((before, cluster)) |
Also available in: Unified diff