From d36499b8edf620230be35bb43c65a619a63046cb Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 27 Jan 2022 07:10:50 +0000 Subject: readahead: do not call -@ on non-String There may not be an `infile' element in the `current' response. Fixes: bf9787ac517fe19a ("deduplicate and freeze pathnames + metadata") --- bin/dtas-readahead | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/dtas-readahead b/bin/dtas-readahead index 6da5f88..f2ab514 100755 --- a/bin/dtas-readahead +++ b/bin/dtas-readahead @@ -145,8 +145,9 @@ begin cur = DTAS.yaml_load(c.req('current')) while @todo_ra > 0 && fp.nil? if current = cur['current'] - track = -current['infile'] + track = current['infile'] break unless track.kind_of?(String) + track = -track fp = work[track] ||= do_open(track) cur_pid = current['pid'] if fp -- cgit v1.2.3-24-ge0c7