Commit 65e003a1 authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti
Browse files

Fixes following scale tests

parent 7a540cdc
......@@ -131,7 +131,7 @@ BEGIN
raise_application_error(-20000, 'No valid files found on this tape pool, aborting the import');
END IF;
ctaLog(inPoolName, 'Intermediate table for files prepared, '|| nbFiles ||' files to be imported. ETA: '||
prettyTime(nbFiles/7000/60));
prettyTime(nbFiles/3400/60));
EXECUTE IMMEDIATE 'TRUNCATE TABLE CTADeltaDirsHelper';
-- estimate the last update time of the Dirs_Full_Path snapshot. To be noted that
-- in case the directory identified by max(fileid) got updated itself, the estimate
......@@ -154,12 +154,12 @@ BEGIN
SELECT path INTO varPath FROM Dirs_Full_Path WHERE fileid = dirIds(i);
DELETE FROM Dirs_Full_Path
WHERE path LIKE varPath || '%';
COMMIT;
EXCEPTION WHEN NO_DATA_FOUND THEN
-- this was a newly created path, will be inserted later
NULL;
END;
END LOOP;
COMMIT;
END IF;
-- do the selection again, this time with the anti-join to exactly identify
-- which directories are missing for this export
......
Supports Markdown
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