Commit 821aa736 authored by Julien Leduc's avatar Julien Leduc
Browse files

eos fid are encoded in hexadecimal on at least 8 characters on the FST

this fixes #982 where files with fid >4294967295 were not considered for
garbage collection.
parent 19f851ac
......@@ -17,6 +17,7 @@
- cta/CTA#969 `xrdfs query prepare` malformed JSON output
- cta/CTA#972 Updates cta-taped and rmcd man pages
- cta/CTA#967 CI DB cleanup issues
- cta/CTA#982 cta-fst-gcd ignored eos files with fid>4294967295
# v4.0-1
......@@ -429,7 +429,7 @@ class Gc:
except Exception as err:
self.log.error('process_fs_sub_dir: Failed to list contents of sub directory: sub_dir={}: {}'.format(sub_dir, err))
fst_files = [f for f in sub_dir_files if re.match('^[0-9A-Fa-f]{8,9}$', f) and self.disk.isfile(os.path.join(sub_dir, f))]
fst_files = [f for f in sub_dir_files if re.match('^[0-9A-Fa-f]{8,}$', f) and self.disk.isfile(os.path.join(sub_dir, f))]
for fst_file in fst_files:
self.process_file(sub_dir, fst_file, eos_space)
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