about summary refs log tree commit homepage
path: root/bin/dtas-readahead
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-01-13 09:12:12 +0000
committerEric Wong <e@80x24.org>2017-01-13 09:12:12 +0000
commita817afea71dd15a6eb39a7ee566d5c4f7e512d14 (patch)
tree5141c405e6e077b39715353d8c2dbb5b45b472ce /bin/dtas-readahead
parent97fd0a17aafcf342757829798aa5c8c1b8d562ca (diff)
downloaddtas-a817afea71dd15a6eb39a7ee566d5c4f7e512d14.tar.gz
We may have hashes in the queue, too.

Followup-to: af91a075c10c ("readahead: handle queued commands properly")
Diffstat (limited to 'bin/dtas-readahead')
-rwxr-xr-xbin/dtas-readahead1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/dtas-readahead b/bin/dtas-readahead
index 40a4ebd..68186dc 100755
--- a/bin/dtas-readahead
+++ b/bin/dtas-readahead
@@ -178,6 +178,7 @@ begin
     # queue has priority, work on it, first
     queue = YAML.load(c.req('queue cat'))
     while @todo_ra > 0 && track = queue.shift
+      next unless track.kind_of?(String)
       fp = nil
       begin
         fp = work[track] ||= do_open(track)