Commit 19f851ac authored by Julien Leduc's avatar Julien Leduc
Browse files

files with fxid coded on 8 or 9 characters in hexadecimal should be considered...

files with fxid coded on 8 or 9 characters in hexadecimal should be considered for GC (8 is not enough).
parent 7ac17c96
......@@ -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}$', 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,9}$', 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)
......
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