Commit 948362de authored by Costin Grigoras's avatar Costin Grigoras
Browse files

@asuiu this should solve the PFN issue

parent 33a23a79
......@@ -675,7 +675,7 @@ public class GUID implements Comparable<GUID>, CatalogEntity {
final Integer iId = Integer.valueOf(guidId);
if (purge && (pfnCache == null || pfnCache.size() > 0)) {
final String purgeQuery = "INSERT IGNORE INTO orphan_pfns (flags,guid,se,md5sum,size) SELECT 1,guid,seNumber,md5,size FROM G" + tableName + "L INNER JOIN G" + tableName
final String purgeQuery = "INSERT IGNORE INTO orphan_pfns (flags,guid,se,md5sum,size,pfn) SELECT 1,guid,seNumber,md5,size,pfn FROM G" + tableName + "L INNER JOIN G" + tableName
+ "L_PFN USING (guidId) INNER JOIN SE using(seNumber) WHERE guidId=? AND seName!='no_se' AND seIoDaemons IS NOT NULL AND pfn LIKE 'root://%';";
if (db.query(purgeQuery, false, iId)) {
......
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