* [PATCH] readahead: do not call -@ on non-String
@ 2022-01-27 7:12 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2022-01-27 7:12 UTC (permalink / raw)
To: dtas-all
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 @@ def do_open(path)
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-27 7:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-27 7:12 [PATCH] readahead: do not call -@ on non-String Eric Wong
Code repositories for project(s) associated with this public inbox
http://80x24.org/dtas.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).