Commit 75d1880e authored by Costin Grigoras's avatar Costin Grigoras
Browse files

Fix the "nosort" flag and simply return the DB order to the client

parent e92b85d5
......@@ -414,7 +414,7 @@ public class IndexTableEntry implements Serializable, Comparable<IndexTableEntry
if ((flags & LFNUtils.FIND_FILTER_JOBID) != 0 && queueid != null && queueid.longValue() > 0)
q += " AND jobid = " + queueid;
if ((flags & LFNUtils.FIND_NO_SORT) != 0)
if ((flags & LFNUtils.FIND_NO_SORT) == 0)
q += " ORDER BY lfn";
if (limit > 0)
......
......@@ -688,12 +688,7 @@ public class LFNUtils {
return findByMetadata(path, processedPattern, tag, query);
}
final Set<LFN> ret;
if ((flags & FIND_NO_SORT) != 0)
ret = new LinkedHashSet<>();
else
ret = new TreeSet<>();
final Set<LFN> ret = new LinkedHashSet<>();
final Collection<IndexTableEntry> matchingTables = CatalogueUtils.getAllMatchingTables(path);
......
Markdown is supported
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